show.html.haml 2.6 KB
Newer Older
1
- @content_class = "limit-container-width" unless fluid_layout
2
- add_to_breadcrumbs "Kubernetes Clusters", clusters_page_path
3
- breadcrumb_title @cluster.name
4
- page_title _("Kubernetes Cluster")
5
- manage_prometheus_path = edit_project_service_path(@cluster.project, 'prometheus') if @project
6

7 8
- expanded = Rails.env.test?

9
- status_path = status_cluster_path(@cluster.id, clusterable_params.merge(format: :json)) if can?(current_user, :admin_cluster, @cluster)
10
.edit-cluster-form.js-edit-cluster-form{ data: { status_path: status_path,
11 12 13 14 15
  install_helm_path: install_applications_cluster_path(@cluster, :helm, clusterable_params),
  install_ingress_path: install_applications_cluster_path(@cluster, :ingress, clusterable_params),
  install_prometheus_path: install_applications_cluster_path(@cluster, :prometheus, clusterable_params),
  install_runner_path: install_applications_cluster_path(@cluster, :runner, clusterable_params),
  install_jupyter_path: install_applications_cluster_path(@cluster, :jupyter, clusterable_params),
Filipa Lacerda's avatar
Filipa Lacerda committed
16
  toggle_status: @cluster.enabled? ? 'true': 'false',
17
  cluster_status: @cluster.status_name,
18
  cluster_status_reason: @cluster.status_reason,
19
  help_path: help_page_path('user/project/clusters/index.md', anchor: 'installing-applications'),
20
  ingress_help_path: help_page_path('user/project/clusters/index.md', anchor: 'getting-the-external-ip-address'),
21
  ingress_dns_help_path: help_page_path('topics/autodevops/quick_start_guide.md', anchor: 'point-dns-at-cluster-ip'),
22
  manage_prometheus_path: manage_prometheus_path } }
23

24 25
  .js-cluster-application-notice
    .flash-container
26

27 28
  %section#cluster-integration
    %h4= @cluster.name
Kamil Trzcinski's avatar
Kamil Trzcinski committed
29
    = render 'banner'
30
    = render 'integration_form'
Filipa Lacerda's avatar
Filipa Lacerda committed
31

32 33
  .cluster-applications-table#js-cluster-applications

Kamil Trzcinski's avatar
Kamil Trzcinski committed
34
  %section.settings#js-cluster-details{ class: ('expanded' if expanded) }
35
    .settings-header
36
      %h4= s_('ClusterIntegration|Kubernetes cluster details')
37
      %button.btn.js-settings-toggle{ type: 'button' }
38
        = expanded ? 'Collapse' : 'Expand'
39
      %p= s_('ClusterIntegration|See and edit the details for your Kubernetes cluster')
40
    .settings-content
41
      - if @cluster.managed?
42
        = render 'clusters/gcp/show'
43
      - else
44
        = render 'clusters/user/show'
Filipa Lacerda's avatar
Filipa Lacerda committed
45

46
  %section.settings.no-animate#js-cluster-advanced-settings{ class: ('expanded' if expanded) }
47
    .settings-header
48
      %h4= _('Advanced settings')
49
      %button.btn.js-settings-toggle{ type: 'button' }
50
        = expanded ? 'Collapse' : 'Expand'
51
      %p= s_("ClusterIntegration|Advanced options on this Kubernetes cluster's integration")
52
    .settings-content
53
      = render 'advanced_settings'