summaryrefslogtreecommitdiff
path: root/app/views/clusters/platforms/kubernetes/_form.html.haml
diff options
context:
space:
mode:
authorJacques Erasmus <jerasmus@gitlab.com>2019-07-25 17:38:06 +0000
committerMike Greiling <mike@pixelcog.com>2019-07-25 17:38:06 +0000
commitf0b2ef0b5fc4600c2a941a9b506873bc9dd80594 (patch)
tree7d4a8f5e11e834775e296a2e7df1d7768308f76a /app/views/clusters/platforms/kubernetes/_form.html.haml
parent9eea3623fa9d59d76f08250947b876abeff89810 (diff)
downloadgitlab-ce-f0b2ef0b5fc4600c2a941a9b506873bc9dd80594.tar.gz
Update namespace label text for managed clusters
Added the ability to update the namespace label text for gitlab-managed
Diffstat (limited to 'app/views/clusters/platforms/kubernetes/_form.html.haml')
-rw-r--r--app/views/clusters/platforms/kubernetes/_form.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/clusters/platforms/kubernetes/_form.html.haml b/app/views/clusters/platforms/kubernetes/_form.html.haml
index f2e44462226..e50c573bd90 100644
--- a/app/views/clusters/platforms/kubernetes/_form.html.haml
+++ b/app/views/clusters/platforms/kubernetes/_form.html.haml
@@ -36,10 +36,6 @@
label: s_('ClusterIntegration|Service Token'), label_class: 'label-bold',
input_group_class: 'gl-field-error-anchor', append: show_token_btn + copy_token_btn
- - if cluster.allow_user_defined_namespace?
- = platform_field.text_field :namespace, label: s_('ClusterIntegration|Project namespace (optional, unique)'),
- label_class: 'label-bold'
-
= platform_field.form_group :authorization_type do
= platform_field.check_box :authorization_type, { disabled: true, label: s_('ClusterIntegration|RBAC-enabled cluster'),
label_class: 'label-bold', inline: true }, 'rbac', 'abac'
@@ -49,10 +45,14 @@
.form-group
= field.check_box :managed, { label: s_('ClusterIntegration|GitLab-managed cluster'),
+ class: 'js-gl-managed',
label_class: 'label-bold' }
.form-text.text-muted
= s_('ClusterIntegration|Allow GitLab to manage namespace and service accounts for this cluster.')
= link_to _('More information'), help_page_path('user/project/clusters/index.md', anchor: 'gitlab-managed-clusters'), target: '_blank'
+ - if cluster.allow_user_defined_namespace?
+ = render('clusters/clusters/namespace', platform_field: platform_field)
+
.form-group
= field.submit s_('ClusterIntegration|Save changes'), class: 'btn btn-success'