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

require bundesland bezeichner environment

parent 99ee57a4
Branches
Tags
No related merge requests found
...@@ -48,12 +48,18 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -48,12 +48,18 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- define "app.ssoLevel" -}}
{{ coalesce (.Values.sso).level ((split "-" (include "app.namespace" .) )._2) "prod" }} {{/*- define "app.environment" -*/}}
{{/*- $namespaceMap := (split "-" (include "app.namespace" .) ) -*/}}
{{/*- coalesce (.Values.kop).environment ( index $namespaceMap (printf "_%d" (sub (len $namespaceMap) 1))) "prod" */}}
{{/*- end -*/}}
{{- define "app.environment" -}}
{{- required "Environment muss angegeben sein" (.Values.kop).environment -}}
{{- end -}} {{- end -}}
{{- define "app.resources" }} {{- define "app.resources" }}
{{- if eq (include "app.ssoLevel" . ) "prod" }} {{- if eq (include "app.environment" . ) "prod" }}
limits: limits:
cpu: "1" cpu: "1"
memory: "1000Mi" memory: "1000Mi"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment