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

OZG-7000 OZG-7219 Set properties for feature toggles

parent 2d7c5948
Branches
Tags
No related merge requests found
......@@ -111,6 +111,18 @@ spec:
value: {{ .Values.zufiManager.address }}
- name: grpc_client_zufi-manager_negotiationType
value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "TLS" }}
{{- if ((.Values.ozgcloud).feature).postfach }}
- name: ozgcloud_feature_postfach
value: {{ .Values.ozgcloud.feature.postfach | quote }}
{{- end }}
{{- if ((.Values.ozgcloud).feature).benutzerRollen }}
- name: ozgcloud_feature_benutzerRollen
value: {{ .Values.ozgcloud.feature.benutzerRollen | quote }}
{{- end }}
{{- if ((.Values.ozgcloud).feature).organisationsEinheiten }}
- name: ozgcloud_feature_organisationsEinheiten
value: {{ .Values.ozgcloud.feature.organisationsEinheiten | quote }}
{{- end }}
envFrom:
{{- if (.Values.database).useExternal }}
- secretRef:
......
......@@ -4,3 +4,7 @@ ozgcloud:
sync:
organisationseinheiten:
cron: "* */5 * * * *"
feature:
postfach: true
benutzerRollen: true
organisationsEinheiten: true
\ No newline at end of file
......@@ -9,3 +9,9 @@ server:
management:
server:
port: 8081
ozgcloud:
feature:
postfach: true
benutzer-rollen: true
organisations-einheiten: true
\ No newline at end of file
......@@ -17,6 +17,10 @@ ozgcloud:
api:
user: administrationApiUser
password: administrationApiUser
feature:
postfach: true
benutzer-rollen: true
organisations-einheiten: true
grpc:
client:
......
#
# Copyright (C) 2024 Das Land Schleswig-Holstein vertreten durch den
# Ministerpräsidenten des Landes Schleswig-Holstein
# Staatskanzlei
# Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
#
# Lizenziert unter der EUPL, Version 1.2 oder - sobald
# diese von der Europäischen Kommission genehmigt wurden -
# Folgeversionen der EUPL ("Lizenz");
# Sie dürfen dieses Werk ausschließlich gemäß
# dieser Lizenz nutzen.
# Eine Kopie der Lizenz finden Sie hier:
#
# https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
#
# Sofern nicht durch anwendbare Rechtsvorschriften
# gefordert oder in schriftlicher Form vereinbart, wird
# die unter der Lizenz verbreitete Software "so wie sie
# ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
# ausdrücklich oder stillschweigend - verbreitet.
# Die sprachspezifischen Genehmigungen und Beschränkungen
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
suite: test feature properties
release:
name: administration
namespace: sh-helm-test
templates:
- templates/deployment.yaml
set:
ozgcloud:
bundesland: sh
bezeichner: helm
sso:
serverUrl: https://sso.company.local
imagePullSecret: image-pull-secret
tests:
- it: should not contain feature properties if values are missing
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_postfach
any: true
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_benutzerRollen
any: true
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_organisationsEinheiten
any: true
- it: should set (optional) feature properties
set:
ozgcloud:
feature:
postfach: true
benutzerRollen: true
organisationsEinheiten: true
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_postfach
value: "true"
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_benutzerRollen
value: "true"
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_feature_organisationsEinheiten
value: "true"
\ 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