diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-23 15:24:32 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-23 15:24:32 +0000 |
commit | 9c98e2a9226c5ee0787b2f36c253eef6a03ecb7b (patch) | |
tree | a328247746bf4497f0b540028497276ff3226d22 /lib | |
parent | 52ca66fc54f15641104a8ccc9232baeb7d1f53a1 (diff) | |
parent | c3041b7f7c4b407f1d32ac2f7ab1e21812b40694 (diff) | |
download | gitlab-ce-9c98e2a9226c5ee0787b2f36c253eef6a03ecb7b.tar.gz |
Merge branch 'certmanager-temp' into 'master'
Deploy cert-manager to managed cluster for SSL certificates
See merge request gitlab-org/gitlab-ce!23036
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/kubernetes/helm/install_command.rb | 14 | ||||
-rw-r--r-- | lib/gitlab/usage_data.rb | 1 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/gitlab/kubernetes/helm/install_command.rb b/lib/gitlab/kubernetes/helm/install_command.rb index 961485005f7..a1ab5e048ac 100644 --- a/lib/gitlab/kubernetes/helm/install_command.rb +++ b/lib/gitlab/kubernetes/helm/install_command.rb @@ -64,17 +64,17 @@ module Gitlab name_flag + optional_tls_flags + optional_version_flag + - optional_rbac_create_flag + + rbac_create_flag + namespace_flag + value_flag end - def optional_rbac_create_flag - return [] unless rbac? - - # jupyterhub helm chart is using rbac.enabled - # https://github.com/jupyterhub/zero-to-jupyterhub-k8s/tree/master/jupyterhub - %w[--set rbac.create=true,rbac.enabled=true] + def rbac_create_flag + if rbac? + %w[--set rbac.create=true,rbac.enabled=true] + else + %w[--set rbac.create=false,rbac.enabled=false] + end end def optional_version_flag diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 069cd1f802a..9bceec749fc 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -60,6 +60,7 @@ module Gitlab clusters_platforms_user: count(::Clusters::Cluster.user_provided.enabled), clusters_applications_helm: count(::Clusters::Applications::Helm.installed), clusters_applications_ingress: count(::Clusters::Applications::Ingress.installed), + clusters_applications_cert_managers: count(::Clusters::Applications::CertManager.installed), clusters_applications_prometheus: count(::Clusters::Applications::Prometheus.installed), clusters_applications_runner: count(::Clusters::Applications::Runner.installed), clusters_applications_knative: count(::Clusters::Applications::Knative.installed), |