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

OZG-6747 resovle comments

parent 7ecb60da
Branches
Tags
No related merge requests found
......@@ -39,6 +39,7 @@ component: antragraum-proxy
{{- required "baseUrl muss angegeben sein" .Values.baseUrl }}
{{- end -}}
{{- define "app.getCustomList" -}}
{{- with (.Values.env).customList -}}
{{- if kindIs "map" . -}}
......
......@@ -58,8 +58,10 @@ spec:
app.kubernetes.io/name: {{ .Release.Name }}
containers:
- env:
- name: APP_ENV
value: "{{ .Values.appEnv | default "" }}"
{{- if (.Values.env).overrideGoProfiles }}
- name: ACTIVE_PROFILE
value: {{ (.Values.env).overrideGoProfiles }}
{{- end }}
{{- with include "app.getCustomList" . }}
{{ . | indent 10 }}
{{- end }}
......
......@@ -63,19 +63,18 @@ tests:
name: test_environment
value: "B test value"
- it: check envs default values
- it: should have env ACTIVE_PROFILE with correct value when set
set:
env.overrideGoProfiles: oc,test,ea
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: APP_ENV
value: ""
- it: should set APP_ENV
set:
appEnv: prod
name: ACTIVE_PROFILE
value: oc,test,ea
- it: should by default not have the ACTIVE_PROFILE env
asserts:
- contains:
- equal:
path: spec.template.spec.containers[0].env
content:
name: APP_ENV
value: "prod"
\ No newline at end of file
value: null
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment