Skip to content
Snippets Groups Projects
Commit 5014cddd authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6177 add create configmap role

parent 02639faa
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,11 @@ helm.sh/chart: {{ include "app.chart" . }}
{{- end -}}
{{/* Namespace */}}
{{- define "app.namespace" -}}
{{- default .Release.Namespace | toString | trunc 63 | trimSuffix "-" -}}
{{- if gt (len (.Release.Namespace)) 63 -}}
{{- fail (printf ".Release.Namespace %s ist zu lang (max. 63 Zeichen)" .Release.Namespace) -}}
{{- end -}}
{{ printf "%s" .Release.Namespace }}
{{- end -}}
{{- define "app.matchLabels" }}
......
......@@ -7,7 +7,7 @@ metadata:
spec:
keep_after_delete: {{ (.Values.user).keep_after_delete | default false }}
login: {{ (.Values.user).name }}
role: {{ (.Values.user).role | default "ADMIN" }}
role: {{ (.Values.user).role | default "USER" }}
credentials: {{ (.Values.user).credentials }}
group: {{ (.Values.user).group | default "Administratoren" }}
{{- end }}
......
......@@ -45,4 +45,4 @@ metadata:
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch", "update", "patch"]
\ No newline at end of file
verbs: ["create", "get", "list", "watch", "update", "patch"]
\ No newline at end of file
......@@ -83,6 +83,7 @@ tests:
resources:
- configmaps
verbs:
- create
- get
- list
- watch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment