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

OZG-3276 OZG-3318 rename application-dev -> application-develop; set develop...

OZG-3276 OZG-3318 rename application-dev -> application-develop; set develop profile on dev environment; set prod profile on non dev environment
parent 7c412904
No related branches found
No related tags found
No related merge requests found
...@@ -115,3 +115,11 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -115,3 +115,11 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- define "app.goofyAddress" -}} {{- define "app.goofyAddress" -}}
{{ printf "https://%s.%s" (include "app.kopBezeichner" .) .Values.baseUrl }} {{ printf "https://%s.%s" (include "app.kopBezeichner" .) .Values.baseUrl }}
{{- end -}} {{- end -}}
{{- define "app.envProfiles" -}}
{{- if eq (include "app.kopEnvironment" . ) "dev" -}}
{{ printf "develop" }}
{{- else -}}
{{ printf "prod" }}
{{- end -}}
{{- end -}}
...@@ -86,7 +86,7 @@ spec: ...@@ -86,7 +86,7 @@ spec:
- name: KOP_KEYCLOAK_SYNC_CRON - name: KOP_KEYCLOAK_SYNC_CRON
value: {{ .Values.kop.keycloak.sync.cron }} value: {{ .Values.kop.keycloak.sync.cron }}
- name: QUARKUS_PROFILE - name: QUARKUS_PROFILE
value: {{ include "app.kopEnvironment" . }} value: {{ include "app.envProfiles" . }}
{{- with (.Values.env).customList }} {{- with (.Values.env).customList }}
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
{{- end }} {{- end }}
......
...@@ -46,13 +46,26 @@ tests: ...@@ -46,13 +46,26 @@ tests:
content: content:
name: my_test_environment_name name: my_test_environment_name
value: "A test value" value: "A test value"
- it: should set quarkus profile
- it: should set profile to "develop" if environment is dev
template: deployment.yaml template: deployment.yaml
release: set:
namespace: sh-helm-dev kop:
environment: dev
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: QUARKUS_PROFILE
value: develop
- it: should set profile to "prod" as default
template: deployment.yaml
set:
kop:
environment: prod
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: QUARKUS_PROFILE name: QUARKUS_PROFILE
value: dev value: prod
\ No newline at end of file \ 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