Skip to content
Snippets Groups Projects
Commit 3a0d2ee0 authored by Krzysztof Witukiewicz's avatar Krzysztof Witukiewicz
Browse files

OZG-7811 OZG-8114 Support mandant-value in helm-template

parent df71333b
No related branches found
No related tags found
1 merge request!23Ozg 7811 vorgaenge zur landesebene schicken
......@@ -75,6 +75,10 @@ spec:
- name: ozgcloud_administration_address
value: {{ include "app.getOzgcloudAdministrationAddress" . }}
{{- end }}
{{- if .Values.mandant }}
- name: ozgcloud_mandant
value: {{ .Values.mandant }}
{{- end }}
{{- with include "app.getCustomList" . }}
{{ . | indent 14 }}
{{- end }}
......
......@@ -129,6 +129,28 @@ tests:
name: ozgcloud_administration_address
value: http://test-administration:8080
- it: should not set mandant per default
set:
ozgcloud:
environment: dev
asserts:
- notContains:
path: spec.jobTemplate.spec.template.spec.containers[0].env
content:
name: ozgcloud_mandant
any: true
- it: should set mandant
set:
mandant: dummy mandant value
ozgcloud:
environment: dev
asserts:
- contains:
path: spec.jobTemplate.spec.template.spec.containers[0].env
content:
name: ozgcloud_mandant
value: "dummy mandant value"
- it: should fail template when env not set
set:
asserts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment