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

OZG-1863: add env.customList for the other apps

parent 1ff5225b
Branches
Tags
No related merge requests found
# pluto
Das helm chart zur Installation des allgemeinen Fachverfahrens - goofy.
## FAQ
### Benutzung beliebiger environment Werte
In jedem der Projekte kann man beliebige weitere environments setzen. Dazu muss man in der jeweiligen values.yaml unter env.customList ein name value Paar setzen:
```yaml
env:
customList:
- name: Dinge
value: true
- name: ...
value: ...
```
......@@ -53,6 +53,9 @@ spec:
value: {{ include "app.ssoServerUrl" . }}
- name: goofy_keycloak_api_password
value: {{ required "A sso apiPassword is required!" (.Values.sso).apiPassword }}
{{- with (.Values.env).customList }}
{{ toYaml . | indent 8 }}
{{- end }}
image: "docker.ozg-sh.de/goofy:{{ coalesce (.Values.image).tag "latest" }}"
imagePullPolicy: Always
name: goofy
......
suite: test environments
templates:
- templates/deployment.yaml
tests:
- it: check customList
template: deployment.yaml
set:
env.customList:
- name: my_test_environment_name
value: "A test value"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: my_test_environment_name
value: "A test value"
- it: check customList test value is not set by default
template: deployment.yaml
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: my_test_environment_name
value: "A test value"
......@@ -13,6 +13,9 @@ imageCredentials:
# env:
# springProfiles: "oc,prod" # [default: oc,prod]
# customList: # add name value pair for additional environments
# - name: Dinge
# value: true
# host: # [default: https://<name>.<level>.ozg-sh.de, if level == "prod" https://<name>.ozg-sh.de] optional, host override value. Be aware that XXX.dev.ozg-sh.de can be used in the dev cluster only.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment