Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
administration
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
administration
Commits
a4d86208
Commit
a4d86208
authored
1 year ago
by
OZGCloud
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into OZG-5297-LadenDerDatenbankNachNeustart
parents
ef6b9e05
b03494cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/helm/templates/network_policy.yaml
+9
-3
9 additions, 3 deletions
src/main/helm/templates/network_policy.yaml
src/test/helm/network_policy_test.yaml
+61
-9
61 additions, 9 deletions
src/test/helm/network_policy_test.yaml
with
70 additions
and
12 deletions
src/main/helm/templates/network_policy.yaml
+
9
−
3
View file @
a4d86208
...
@@ -14,7 +14,10 @@ spec:
...
@@ -14,7 +14,10 @@ spec:
ingress
:
ingress
:
-
ports
:
-
ports
:
-
port
:
8080
-
port
:
8080
{{
- with (.Values.networkPolicy).additionalIngressConfig
}}
{{
- with (.Values.networkPolicy).additionalIngressConfigLocal
}}
{{
toYaml . | indent 2
}}
{{
- end
}}
{{
- with (.Values.networkPolicy).additionalIngressConfigGlobal
}}
{{
toYaml . | indent 2
}}
{{
toYaml . | indent 2
}}
{{
- end
}}
{{
- end
}}
egress
:
egress
:
...
@@ -42,8 +45,11 @@ spec:
...
@@ -42,8 +45,11 @@ spec:
protocol
:
UDP
protocol
:
UDP
-
port
:
5353
-
port
:
5353
protocol
:
TCP
protocol
:
TCP
{{
- with (.Values.networkPolicy).additionalEgressConfig
}}
{{
- with (.Values.networkPolicy).additionalEgressConfigLocal
}}
{{
toYaml . | indent 2
}}
{{
toYaml . | indent 4
}}
{{
- end
}}
{{
- with (.Values.networkPolicy).additionalEgressConfigGlobal
}}
{{
toYaml . | indent 4
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/test/helm/network_policy_test.yaml
+
61
−
9
View file @
a4d86208
...
@@ -91,12 +91,31 @@ tests:
...
@@ -91,12 +91,31 @@ tests:
protocol
:
UDP
protocol
:
UDP
-
port
:
5353
-
port
:
5353
protocol
:
TCP
protocol
:
TCP
-
it
:
add ingress rule by values
-
it
:
add ingress rule by values local
set
:
networkPolicy
:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-namespace-dns
additionalIngressConfigLocal
:
-
from
:
-
podSelector
:
matchLabels
:
component
:
client2
asserts
:
-
contains
:
path
:
spec.ingress
content
:
from
:
-
podSelector
:
matchLabels
:
component
:
client2
-
it
:
add ingress rule by values global
set
:
set
:
networkPolicy
:
networkPolicy
:
ssoPublicIp
:
51.89.117.53/32
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-namespace-dns
dnsServerNamespace
:
test-namespace-dns
additionalIngressConfig
:
additionalIngressConfig
Global
:
-
from
:
-
from
:
-
podSelector
:
-
podSelector
:
matchLabels
:
matchLabels
:
...
@@ -110,6 +129,39 @@ tests:
...
@@ -110,6 +129,39 @@ tests:
matchLabels
:
matchLabels
:
component
:
client2
component
:
client2
-
it
:
add egress rules by values local
set
:
networkPolicy
:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-dns-namespace
additionalEgressConfigLocal
:
-
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
asserts
:
-
contains
:
path
:
spec.egress
content
:
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
it
:
add egress rules by values Global
set
:
networkPolicy
:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-dns-namespace
additionalEgressConfigGlobal
:
-
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
asserts
:
-
contains
:
path
:
spec.egress
content
:
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
it
:
test network policy disabled
-
it
:
test network policy disabled
set
:
set
:
networkPolicy
:
networkPolicy
:
...
...
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