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
3ae624f4
Commit
3ae624f4
authored
3 months ago
by
Felix Reichenbach
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6741 revert netpol changes
parent
274dfae2
No related branches found
No related tags found
1 merge request
!1
Ozg 6741 organisationseinheit link
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/helm/templates/network_policy.yaml
+0
-7
0 additions, 7 deletions
src/main/helm/templates/network_policy.yaml
src/test/helm/network_policy_test.yaml
+43
-50
43 additions, 50 deletions
src/test/helm/network_policy_test.yaml
with
43 additions
and
57 deletions
src/main/helm/templates/network_policy.yaml
+
0
−
7
View file @
3ae624f4
...
...
@@ -69,13 +69,6 @@ spec:
ports
:
-
port
:
27017
protocol
:
TCP
-
to
:
-
podSelector
:
matchLabels
:
component
:
alfa
ports
:
-
port
:
8080
protocol
:
TCP
# public keycloak ip
-
to
:
-
ipBlock
:
...
...
This diff is collapsed.
Click to expand it.
src/test/helm/network_policy_test.yaml
+
43
−
50
View file @
3ae624f4
...
...
@@ -76,12 +76,12 @@ tests:
-
ports
:
-
port
:
8080
-
from
:
-
namespaceSelector
:
matchLabels
:
name
:
"
openshift-user-workload-monitoring"
-
namespaceSelector
:
matchLabels
:
name
:
"
openshift-user-workload-monitoring"
ports
:
-
protocol
:
TCP
port
:
8081
-
protocol
:
TCP
port
:
8081
egress
:
-
to
:
-
namespaceSelector
:
...
...
@@ -100,13 +100,6 @@ tests:
ports
:
-
port
:
27017
protocol
:
TCP
-
to
:
-
podSelector
:
matchLabels
:
component
:
"
alfa"
ports
:
-
port
:
8080
protocol
:
TCP
# public keycloak ip
-
to
:
-
ipBlock
:
...
...
@@ -131,18 +124,18 @@ tests:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-namespace-dns
additionalIngressConfigLocal
:
-
from
:
-
podSelector
:
matchLabels
:
component
:
client2
-
from
:
-
podSelector
:
matchLabels
:
component
:
client2
asserts
:
-
contains
:
path
:
spec.ingress
content
:
from
:
-
podSelector
:
matchLabels
:
component
:
client2
-
podSelector
:
matchLabels
:
component
:
client2
-
it
:
set ingress monitoring namespace rule
set
:
...
...
@@ -155,30 +148,30 @@ tests:
path
:
spec.ingress
content
:
from
:
-
namespaceSelector
:
matchLabels
:
name
:
"
monitoring"
-
namespaceSelector
:
matchLabels
:
name
:
"
monitoring"
ports
:
-
protocol
:
TCP
port
:
8081
-
protocol
:
TCP
port
:
8081
-
it
:
add ingress rule by values global
set
:
networkPolicy
:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-namespace-dns
additionalIngressConfigGlobal
:
-
from
:
-
podSelector
:
matchLabels
:
component
:
client2
-
from
:
-
podSelector
:
matchLabels
:
component
:
client2
asserts
:
-
contains
:
path
:
spec.ingress
content
:
from
:
-
podSelector
:
matchLabels
:
component
:
client2
-
podSelector
:
matchLabels
:
component
:
client2
-
it
:
add egress rules by values local
set
:
...
...
@@ -186,32 +179,32 @@ tests:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-dns-namespace
additionalEgressConfigLocal
:
-
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
asserts
:
-
contains
:
path
:
spec.egress
content
:
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
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
-
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
asserts
:
-
contains
:
path
:
spec.egress
content
:
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
contains
:
path
:
spec.egress
content
:
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
it
:
test network policy disabled
set
:
...
...
@@ -254,4 +247,4 @@ tests:
ssoPublicIp
:
1.1.1.1
asserts
:
-
hasDocuments
:
count
:
1
count
:
1
\ 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