Commit 161e6689 authored by Amit Rathi's avatar Amit Rathi

Set appropriate RBAC flag for cluster applications

parent 5c275490
......@@ -40,8 +40,7 @@ module Clusters
def install_command_flags
['--set', 'ingressShim.defaultIssuerName=letsencrypt-prod'] +
['--set', 'ingressShim.defaultIssuerKind=ClusterIssuer'] +
['--set', 'rbac.create=false']
['--set', 'ingressShim.defaultIssuerKind=ClusterIssuer']
end
private
......
......@@ -69,18 +69,18 @@ module Gitlab
name_flag +
optional_tls_flags +
optional_version_flag +
optional_rbac_create_flag +
rbac_create_flag +
namespace_flag +
value_flag +
application_flags
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
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment