Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alfa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
alfa
Commits
4fa7b8d7
Commit
4fa7b8d7
authored
2 weeks ago
by
Lukas Malte Monnerjahn
Browse files
Options
Downloads
Patches
Plain Diff
OZG-4880 helm env values maxFileSize and contentTypes for postfachNachrichtAttachment
parent
87adfbcb
No related branches found
Branches containing commit
No related tags found
1 merge request
!25
OZG-4880 Helm Env Values für OSI-Postfach 2.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/helm/templates/deployment.yaml
+8
-0
8 additions, 0 deletions
src/main/helm/templates/deployment.yaml
src/test/helm/deployment_upload_env_test.yaml
+72
-0
72 additions, 0 deletions
src/test/helm/deployment_upload_env_test.yaml
with
80 additions
and
0 deletions
src/main/helm/templates/deployment.yaml
+
8
−
0
View file @
4fa7b8d7
...
...
@@ -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
}}
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/deployment_upload_env_test.yaml
0 → 100644
+
72
−
0
View file @
4fa7b8d7
#
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment