Skip to content
Snippets Groups Projects
Commit 249f3bd2 authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-4880 osiv2_auth_secrect depends on enabled flag

parent abb8f0f0
No related branches found
No related tags found
1 merge request!24OZG-4880 Helm Env Values für OSI-Postfach 2.0
......@@ -124,11 +124,11 @@ spec:
value: {{ .Values.ozgcloud.osiv2.api.nameidentifier}}
{{- if (.Values.ozgcloud.osiv2.httpproxy).enabled}}
- name: ozgcloud_osiv2_http-proxy_enabled
value: "{{ (.Values.ozgcloud.osiv2.httpproxy).enabled }}"
value: "{{ .Values.ozgcloud.osiv2.httpproxy.enabled }}"
- name: ozgcloud_osiv2_http-proxy_host
value: {{ .Values.ozgcloud.osiv2.httpproxy.host }}
- name: ozgcloud_osiv2_http-proxy_port
value: "{{ .Values.ozgcloud.osiv2.httpproxy.port }}""
value: "{{ .Values.ozgcloud.osiv2.httpproxy.port }}"
{{- end }}
{{- end }}
{{- if (.Values.rabbitmq).enabled }}
......
......@@ -22,7 +22,7 @@
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
{{- if (.Values.ozgcloud.osiv2).auth }}
{{- if (.Values.ozgcloud.osiv2).enabled }}
apiVersion: v1
kind: Secret
metadata:
......
......@@ -105,6 +105,11 @@ tests:
content:
name: ozgcloud_osiv2_api_name-identifier
value: "name-identifier"
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_osiv2_http-proxy_enabled
any: true
- it: should set osiv2 proxy values
set:
ozgcloud:
......@@ -113,7 +118,7 @@ tests:
httpproxy:
enabled: true
host: "http://proxy.host"
port: "8080"
port: 8080
asserts:
- contains:
path: spec.template.spec.containers[0].env
......@@ -129,7 +134,7 @@ tests:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_osiv2_http-proxy_port
value: 8080
value: "8080"
- it: should not by default set osiv2 values
asserts:
- contains:
......
......@@ -31,6 +31,7 @@ templates:
set:
ozgcloud:
osiv2:
enabled: true
auth:
clientid: "client-id"
clientsecret: "client-secret"
......@@ -62,7 +63,10 @@ tests:
value: "client-secret"
- it: should not create osiv2 auth secret by default
set:
ozgcloud.osiv2.auth: null
ozgcloud:
osiv2:
enabled: false
auth: null
asserts:
- hasDocuments:
count: 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment