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

OZG-4880 helm env values maxFileSize and contentTypes for postfachNachrichtAttachment

parent 87adfbcb
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 }}
......
#
# 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.
Finish editing this message first!
Please register or to comment