Skip to content
Snippets Groups Projects
Commit c6433b29 authored by Robert Marshall's avatar Robert Marshall
Browse files

Allow Disabling of ClusterRoles


- Add global.application.allowClusterRoles defaulted to true

Resolves charts/gitlab#1176

Signed-off-by: default avatarRobert Marshall <rmarshall@gitlab.com>
parent e557b49d
No related branches found
No related tags found
Loading
......@@ -80,12 +80,16 @@ spec:
kind: ServiceAccount
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
{{ if eq .Values.global.application.allowClusterRoles true -}}
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
{{- end }}
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
{{ if eq .Values.global.application.allowClusterRoles true -}}
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
{{- end }}
- apiVersion: batch/v1
kind: Job
- apiVersion: v1
......
......@@ -31,6 +31,7 @@ global:
application:
create: false
links: []
allowClusterRoles: true
## doc/charts/globals.md#configure-host-settings
hosts:
domain: example.com
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment