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" . }} ...@@ -28,9 +28,11 @@ helm.sh/chart: {{ include "app.chart" . }}
{{- end -}} {{- end -}}
{{/* Namespace */}}
{{- define "app.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 -}} {{- end -}}
{{- define "app.matchLabels" }} {{- define "app.matchLabels" }}
......
...@@ -7,7 +7,7 @@ metadata: ...@@ -7,7 +7,7 @@ metadata:
spec: spec:
keep_after_delete: {{ (.Values.user).keep_after_delete | default false }} keep_after_delete: {{ (.Values.user).keep_after_delete | default false }}
login: {{ (.Values.user).name }} login: {{ (.Values.user).name }}
role: {{ (.Values.user).role | default "ADMIN" }} role: {{ (.Values.user).role | default "USER" }}
credentials: {{ (.Values.user).credentials }} credentials: {{ (.Values.user).credentials }}
group: {{ (.Values.user).group | default "Administratoren" }} group: {{ (.Values.user).group | default "Administratoren" }}
{{- end }} {{- end }}
......
...@@ -45,4 +45,4 @@ metadata: ...@@ -45,4 +45,4 @@ metadata:
rules: rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["configmaps"] resources: ["configmaps"]
verbs: ["get", "list", "watch", "update", "patch"] verbs: ["create", "get", "list", "watch", "update", "patch"]
\ No newline at end of file \ No newline at end of file
...@@ -83,6 +83,7 @@ tests: ...@@ -83,6 +83,7 @@ tests:
resources: resources:
- configmaps - configmaps
verbs: verbs:
- create
- get - get
- list - list
- watch - watch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment