47f2754a14
* master: (242 commits) Validate user namespace before saving so that errors persist on model Reset Project's column information in spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb Explicitly set cwd in Sidekiq memory killer instead of depending on getcwd Downgrade google-protobuf Close low level rugged repository in project cache worker File upload UI obeys LFS filters Resolve "Add a link to documentation on how to get external ip in the Kubernetes cluster details page" Upgrade GitLab Workhorse to v3.6.0 Add sorting options for /users API (admin only) improvements from feedback [ci-skip] add changelog remove file after `Upload#destroy` Fix a hardcoded pipeline ID in a spinach step Override group sidebar links Replace "cluster" with "Kubernetes cluster" Reorder async/sync tasks in BuildFinishedWorker to read traces efficiently Fix tests for Drop filename enforcement Revert using expand_fixture_path in factory Revert "Add FixtureHelpers for FactoryGirl" Refactor :trace to :trace_live in spec ...
48 lines
2.4 KiB
Text
48 lines
2.4 KiB
Text
- @content_class = "limit-container-width" unless fluid_layout
|
|
- add_to_breadcrumbs "Kubernetes Clusters", project_clusters_path(@project)
|
|
- breadcrumb_title @cluster.name
|
|
- page_title _("Kubernetes Cluster")
|
|
|
|
- expanded = Rails.env.test?
|
|
|
|
- status_path = status_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster.id, format: :json) if can?(current_user, :admin_cluster, @cluster)
|
|
.edit-cluster-form.js-edit-cluster-form{ data: { status_path: status_path,
|
|
install_helm_path: install_applications_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster, :helm),
|
|
install_ingress_path: install_applications_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster, :ingress),
|
|
install_prometheus_path: install_applications_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster, :prometheus),
|
|
toggle_status: @cluster.enabled? ? 'true': 'false',
|
|
cluster_status: @cluster.status_name,
|
|
cluster_status_reason: @cluster.status_reason,
|
|
help_path: help_page_path('user/project/clusters/index.md', anchor: 'installing-applications'),
|
|
ingress_help_path: help_page_path('user/project/clusters/index.md', anchor: 'getting-the-external-ip-address'),
|
|
manage_prometheus_path: edit_project_service_path(@cluster.project, 'prometheus') } }
|
|
|
|
.js-cluster-application-notice
|
|
.flash-container
|
|
|
|
%section.settings.no-animate.expanded#cluster-integration
|
|
= render 'banner'
|
|
= render 'integration_form'
|
|
|
|
.cluster-applications-table#js-cluster-applications
|
|
|
|
%section.settings#js-cluster-details{ class: ('expanded' if expanded) }
|
|
.settings-header
|
|
%h4= s_('ClusterIntegration|Kubernetes cluster details')
|
|
%button.btn.js-settings-toggle
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
%p= s_('ClusterIntegration|See and edit the details for your Kubernetes cluster')
|
|
.settings-content
|
|
- if @cluster.managed?
|
|
= render 'projects/clusters/gcp/show'
|
|
- else
|
|
= render 'projects/clusters/user/show'
|
|
|
|
%section.settings.no-animate#js-cluster-advanced-settings{ class: ('expanded' if expanded) }
|
|
.settings-header
|
|
%h4= _('Advanced settings')
|
|
%button.btn.js-settings-toggle
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
%p= s_("ClusterIntegration|Advanced options on this Kubernetes cluster's integration")
|
|
.settings-content
|
|
= render 'advanced_settings'
|