summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/show.html.haml
blob: a6efe597f0ccb5978aa2180f48b159b9e6e439b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
- @content_class = "limit-container-width" unless fluid_layout
- add_to_breadcrumbs _('Kubernetes Clusters'), clusterable.index_path
- breadcrumb_title @cluster.name
- page_title _('Kubernetes Cluster')
- cluster_environments_path = clusterable.environments_cluster_path(@cluster)

- status_path = clusterable.cluster_status_cluster_path(@cluster.id, format: :json) if can?(current_user, :admin_cluster, @cluster)
.edit-cluster-form.js-edit-cluster-form{ data: { status_path: status_path,
  cluster_environments_path: cluster_environments_path,
  toggle_status: @cluster.enabled? ? 'true': 'false',
  has_rbac: has_rbac_enabled?(@cluster) ? 'true': 'false',
  cluster_type: @cluster.cluster_type,
  cluster_status: @cluster.status_name,
  cluster_status_reason: @cluster.status_reason,
  provider_type: @cluster.provider_type,
  help_path: help_page_path('user/infrastructure/clusters/index.md'),
  environments_help_path: help_page_path('ci/environments/index.md', anchor: 'create-a-static-environment'),
  clusters_help_path: help_page_path('user/project/clusters/deploy_to_cluster.md'),
  deploy_boards_help_path: help_page_path('user/project/deploy_boards.md', anchor: 'enabling-deploy-boards'),
  cluster_id: @cluster.id } }

  .js-cluster-application-notice
    .flash-container

  .js-serverless-survey-banner{ data: { user_name: current_user.name, user_email: current_user.email } }

  %h4.gl-my-5.gl-display-flex.gl-align-items-center
    = @cluster.name
    = gl_badge_tag cluster_type_label(@cluster.cluster_type), { variant: :info }, { class: 'gl-ml-3' }

  = render 'banner'

  .gl-alert.gl-alert-warning{ role: 'alert' }
    = sprite_icon('warning', css_class: "gl-alert-icon gl-alert-icon-no-title gl-icon")
    %button.js-close.gl-alert-dismiss{ type: 'button', 'aria-label' => _('Dismiss'), data: { testid: 'dismiss-one-click-application-removal' } }
      = sprite_icon('close', css_class: 'gl-icon')
    .gl-alert-body
      = s_('ClusterApplicationsRemoved|One-click application management was removed in GitLab 14.0. Your applications are still installed in your cluster, and integrations continue working.')
      = link_to _('More information.'), help_page_path("user/clusters/applications"), target: '_blank'

  - if cluster_created?(@cluster)
    .js-toggle-container
      = gl_tabs_nav do
        = render 'clusters/clusters/details_tab'
        = render_if_exists 'clusters/clusters/environments_tab'
        = render 'clusters/clusters/health_tab'
        = render 'clusters/clusters/integrations_tab'
        = render 'clusters/clusters/advanced_settings_tab'

      .tab-content.py-3
        .tab-pane.active{ role: 'tabpanel' }
          = render_cluster_info_tab_content(params[:tab], expanded_by_default?)