Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vorgang-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
vorgang-manager
Commits
4a5bcbf1
Commit
4a5bcbf1
authored
7 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6708 add antragsraum-proxy to netpol
parent
5c8919b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/helm/templates/network_policy.yaml
+7
-0
7 additions, 0 deletions
src/main/helm/templates/network_policy.yaml
src/test/helm/network_policy_test.yaml
+53
-0
53 additions, 0 deletions
src/test/helm/network_policy_test.yaml
with
60 additions
and
0 deletions
src/main/helm/templates/network_policy.yaml
+
7
−
0
View file @
4a5bcbf1
...
...
@@ -63,6 +63,13 @@ spec:
podSelector
:
matchLabels
:
component
:
antragsraum-server
-
from
:
-
namespaceSelector
:
matchLabels
:
kubernetes.io/metadata.name
:
{{
required "ozgcloud.antragraum.antragsraumProxyNamespace must be set if antragraum is enabled" ((.Values.ozgcloud).antragraum).antragsraumProxyNamespace
}}
podSelector
:
matchLabels
:
component
:
antragsraum-proxy
{{
- end
}}
-
from
:
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/network_policy_test.yaml
+
53
−
0
View file @
4a5bcbf1
...
...
@@ -149,6 +149,7 @@ tests:
antragraum
:
enabled
:
true
namespace
:
antragraum02
antragsraumProxyNamespace
:
antragraum-proxy
asserts
:
-
contains
:
path
:
spec.ingress
...
...
@@ -160,6 +161,26 @@ tests:
podSelector
:
matchLabels
:
component
:
antragsraum-server
-
it
:
should add ingress rule for antragraum-proxy if antragraum is enabled
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
ozgcloud
:
antragraum
:
enabled
:
true
namespace
:
antragraum-proxy
antragsraumProxyNamespace
:
antragraum-proxy
asserts
:
-
contains
:
path
:
spec.ingress
content
:
from
:
-
namespaceSelector
:
matchLabels
:
kubernetes.io/metadata.name
:
antragraum-proxy
podSelector
:
matchLabels
:
component
:
antragsraum-proxy
-
it
:
should not add ingress rule for antragraum if antragraum is disabled
...
...
@@ -181,6 +202,25 @@ tests:
matchLabels
:
component
:
antragraum-server
-
it
:
should not add ingress rule for antragraum-proxy if antragraum is disabled
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
ozgcloud
:
antragraum
:
enabled
:
false
asserts
:
-
notContains
:
path
:
spec.ingress
content
:
from
:
-
namespaceSelector
:
matchLabels
:
kubernetes.io/metadata.name
:
antragraum-proxy
podSelector
:
matchLabels
:
component
:
antragraum-proxy
-
it
:
should throw error if antragraum is enabled but antragraum namespace is not set
set
:
networkPolicy
:
...
...
@@ -188,9 +228,21 @@ tests:
ozgcloud
:
antragraum
:
enabled
:
true
antragsraumProxyNamespace
:
antragraum-proxy
asserts
:
-
failedTemplate
:
errorMessage
:
ozgcloud.antragraum.namespace must be set if antragraum is enabled
-
it
:
should throw error if antragraum is enabled but antragsraumProxyNamespace is not set
set
:
networkPolicy
:
dnsServerNamespace
:
test-dns-namespace
ozgcloud
:
antragraum
:
enabled
:
true
namespace
:
antragraum2
asserts
:
-
failedTemplate
:
errorMessage
:
ozgcloud.antragraum.antragsraumProxyNamespace must be set if antragraum is enabled
-
it
:
should add default ingress rule for zentraler-eingang
set
:
...
...
@@ -356,6 +408,7 @@ tests:
antragraum
:
enabled
:
true
namespace
:
antragraum02
antragsraumProxyNamespace
:
antragraum-proxy
asserts
:
-
contains
:
path
:
spec.egress
...
...
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