2017-10-17 09:28:27 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2018-01-29 14:49:00 -05:00
|
|
|
- add_to_breadcrumbs "Kubernetes Clusters", project_clusters_path(@project)
|
2018-01-11 04:46:26 -05:00
|
|
|
- breadcrumb_title @cluster.name
|
2018-01-29 14:49:00 -05:00
|
|
|
- page_title _("Kubernetes Cluster")
|
2017-10-05 15:33:29 -04:00
|
|
|
|
2017-10-17 09:28:27 -04:00
|
|
|
- expanded = Rails.env.test?
|
|
|
|
|
2017-10-24 00:56:39 -04:00
|
|
|
- status_path = status_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster.id, format: :json) if can?(current_user, :admin_cluster, @cluster)
|
2017-10-17 09:28:27 -04:00
|
|
|
.edit-cluster-form.js-edit-cluster-form{ data: { status_path: status_path,
|
2017-11-06 04:48:38 -05:00
|
|
|
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),
|
2017-12-22 12:23:43 -05:00
|
|
|
install_prometheus_path: install_applications_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster, :prometheus),
|
2018-03-01 18:46:02 -05:00
|
|
|
install_runner_path: install_applications_namespace_project_cluster_path(@cluster.project.namespace, @cluster.project, @cluster, :runner),
|
2017-10-03 13:23:25 -04:00
|
|
|
toggle_status: @cluster.enabled? ? 'true': 'false',
|
2017-10-04 16:13:10 -04:00
|
|
|
cluster_status: @cluster.status_name,
|
2017-10-24 00:56:39 -04:00
|
|
|
cluster_status_reason: @cluster.status_reason,
|
2018-01-30 18:21:59 -05:00
|
|
|
help_path: help_page_path('user/project/clusters/index.md', anchor: 'installing-applications'),
|
2018-02-06 14:28:13 -05:00
|
|
|
ingress_help_path: help_page_path('user/project/clusters/index.md', anchor: 'getting-the-external-ip-address'),
|
2018-02-20 07:44:20 -05:00
|
|
|
ingress_dns_help_path: help_page_path('topics/autodevops/quick_start_guide.md', anchor: 'point-dns-at-cluster-ip'),
|
2018-01-30 18:21:59 -05:00
|
|
|
manage_prometheus_path: edit_project_service_path(@cluster.project, 'prometheus') } }
|
2017-10-17 09:28:27 -04:00
|
|
|
|
2017-11-07 07:28:02 -05:00
|
|
|
.js-cluster-application-notice
|
|
|
|
.flash-container
|
2017-10-24 00:56:39 -04:00
|
|
|
|
2017-12-21 11:58:46 -05:00
|
|
|
%section.settings.no-animate.expanded#cluster-integration
|
2017-12-03 15:36:01 -05:00
|
|
|
= render 'banner'
|
2017-12-21 12:24:38 -05:00
|
|
|
= render 'integration_form'
|
2017-10-02 07:41:46 -04:00
|
|
|
|
2017-10-24 00:56:39 -04:00
|
|
|
.cluster-applications-table#js-cluster-applications
|
|
|
|
|
2017-12-03 15:48:52 -05:00
|
|
|
%section.settings#js-cluster-details{ class: ('expanded' if expanded) }
|
2017-10-17 09:28:27 -04:00
|
|
|
.settings-header
|
2018-01-29 14:49:00 -05:00
|
|
|
%h4= s_('ClusterIntegration|Kubernetes cluster details')
|
2017-10-17 09:28:27 -04:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
2018-01-29 14:49:00 -05:00
|
|
|
%p= s_('ClusterIntegration|See and edit the details for your Kubernetes cluster')
|
2017-11-03 07:41:13 -04:00
|
|
|
.settings-content
|
2017-11-14 17:53:05 -05:00
|
|
|
- if @cluster.managed?
|
|
|
|
= render 'projects/clusters/gcp/show'
|
|
|
|
- else
|
2017-12-03 09:00:33 -05:00
|
|
|
= render 'projects/clusters/user/show'
|
2017-10-02 07:41:46 -04:00
|
|
|
|
2017-11-03 07:41:13 -04:00
|
|
|
%section.settings.no-animate#js-cluster-advanced-settings{ class: ('expanded' if expanded) }
|
2017-10-17 09:28:27 -04:00
|
|
|
.settings-header
|
2017-10-22 04:45:20 -04:00
|
|
|
%h4= _('Advanced settings')
|
2017-10-17 09:28:27 -04:00
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
2018-01-29 14:49:00 -05:00
|
|
|
%p= s_("ClusterIntegration|Advanced options on this Kubernetes cluster's integration")
|
2017-11-03 07:41:13 -04:00
|
|
|
.settings-content
|
2017-10-17 09:28:27 -04:00
|
|
|
= render 'advanced_settings'
|