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

Merge branch 'OZG-4880-OSIv2-helm' into 'main'

OZG-4880 Helm Env Values für OSI-Postfach 2.0

See merge request !25
parents 725af779 4fa7b8d7
No related branches found
No related tags found
1 merge request!25OZG-4880 Helm Env Values für OSI-Postfach 2.0
......@@ -100,6 +100,14 @@ spec:
- name: ozgcloud_user-assistance_documentation_url
value: {{ .Values.ozgcloud.user_assistance.documentation.url }}
{{- end }}
{{- if (((.Values.ozgcloud).upload).maxFileSize).postfachNachrichtAttachment }}
- name: ozgcloud_upload_maxFileSize_postfachNachrichtAttachment
value: {{ .Values.ozgcloud.upload.maxFileSize.postfachNachrichtAttachment }}
{{- end }}
{{- if (((.Values.ozgcloud).upload).contentTypes).postfachNachrichtAttachment }}
- name: ozgcloud_upload_contentTypes_postfachNachrichtAttachment
value: {{ .Values.ozgcloud.upload.contentTypes.postfachNachrichtAttachment }}
{{- end }}
{{- with include "app.getCustomList" . }}
{{ . | indent 8 }}
{{- end }}
......
......@@ -44,21 +44,21 @@ set:
imagePullSecret: image-pull-secret
tests:
- it: should not fail on .Release.Namespace length less than 63 characters
asserts:
- notFailedTemplate: { }
- it: should fail on .Release.Namespace length longer than 63 characters
release:
namespace: test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890
asserts:
- failedTemplate:
errorMessage: .Release.Namespace test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 63 Zeichen)
- it: should not fail on .Release.Namespace length less than 63 characters
- it: should not fail on .Chart.Name-.Chart.Version length less than 63 characters
asserts:
- notFailedTemplate: {}
- notFailedTemplate: { }
- it: should fail on .Chart.Name-.Chart.Version length longer than 63 characters
chart:
version: 1.0-test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890
asserts:
- failedTemplate:
errorMessage: .Chart.Name-.Chart.Version alfa-1.0-test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 63 Zeichen)
- it: should not fail on .Chart.Name-.Chart.Version length less than 63 characters
asserts:
- notFailedTemplate: {}
#
# Copyright (C) 2025 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: deployment upload env
release:
name: alfa
namespace: sh-helm-test
templates:
- templates/deployment.yaml
set:
baseUrl: test.company.local
ozgcloud:
environment: test
bundesland: sh
bezeichner: helm
barrierefreiheitUrl: http://barrierefreiheit.test.url
sso:
serverUrl: https://sso.company.local
imagePullSecret: image-pull-secret
tests:
- it: should set upload values
set:
ozgcloud:
upload:
maxFileSize:
postfachNachrichtAttachment: "50MB"
contentTypes:
postfachNachrichtAttachment: "text/plain,application/pdf"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_upload_maxFileSize_postfachNachrichtAttachment
value: "50MB"
- contains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_upload_contentTypes_postfachNachrichtAttachment
value: "text/plain,application/pdf"
- it: should not set upload values when missing
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_upload_maxFileSize_postfachNachrichtAttachment
any: true
- notContains:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_upload_contentTypes_postfachNachrichtAttachment
any: 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