Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eingang-manager
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
eingang-manager
Commits
c45d9126
Commit
c45d9126
authored
1 year ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-4884-change bezeichner max. length to 46 and add helm unittest
parent
fb1183b1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/helm/templates/_helpers.tpl
+2
-2
2 additions, 2 deletions
src/main/helm/templates/_helpers.tpl
src/test/helm/ingress_host_test.yaml
+18
-0
18 additions, 0 deletions
src/test/helm/ingress_host_test.yaml
with
20 additions
and
2 deletions
src/main/helm/templates/_helpers.tpl
+
2
−
2
View file @
c45d9126
...
...
@@ -63,10 +63,10 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- define "app.ozgcloudBezeichner" -}}
{{ $length := len (.Values.ozgcloud).bezeichner }}
{{- if ge
27
$length -}}
{{- if ge
46
$length -}}
{{ (.Values.ozgcloud).bezeichner }}
{{- else -}}
{{ required (printf "Bezichner %s ist zu lang (max.
27
Zeichen)" (.Values.ozgcloud).bezeichner) nil }}
{{ required (printf "Bez
e
ichner %s ist zu lang (max.
46
Zeichen)" (.Values.ozgcloud).bezeichner) nil }}
{{- end -}}
{{- end -}}
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/ingress_host_test.yaml
0 → 100644
+
18
−
0
View file @
c45d9126
suite
:
test ozgcloud bezeichner length
release
:
name
:
eingang-manager
namespace
:
sh-helm-test
templates
:
-
templates/ingress.yaml
tests
:
-
it
:
should fail on bezeichner (in ingress host) length longer than 46 characters
template
:
ingress.yaml
set
:
ozgcloud
:
bezeichner
:
test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890
environment
:
test
bundesland
:
by
asserts
:
-
failedTemplate
:
errorMessage
:
Bezeichner test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 46 Zeichen)
\ 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