Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xta-adapter
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
xta-adapter
Commits
cb668a9d
Commit
cb668a9d
authored
1 year ago
by
OZG-Cloud Team
Browse files
Options
Downloads
Patches
Plain Diff
OZG-3880 network-policy fix xta egress rule
parent
58a3205d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
xta-adapter/src/main/helm/templates/network_policy.yaml
+8
-6
8 additions, 6 deletions
xta-adapter/src/main/helm/templates/network_policy.yaml
xta-adapter/src/test/helm/network_policy_test.yaml
+17
-43
17 additions, 43 deletions
xta-adapter/src/test/helm/network_policy_test.yaml
with
25 additions
and
49 deletions
xta-adapter/src/main/helm/templates/network_policy.yaml
+
8
−
6
View file @
cb668a9d
...
...
@@ -63,10 +63,12 @@ spec:
matchLabels
:
kubernetes.io/metadata.name
:
ssh-port-forward
ports
:
-
port
:
9000
-
port
:
443
protocol
:
TCP
-
port
:
80
protocol
:
TCP
{{
- with (.Values.networkPolicy).additionalEgressConfig
}}
-
to
:
{{
toYaml . | indent 8
}}
{{
toYaml . | indent 2
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
xta-adapter/src/test/helm/network_policy_test.yaml
+
17
−
43
View file @
cb668a9d
...
...
@@ -82,54 +82,28 @@ tests:
matchLabels
:
kubernetes.io/metadata.name
:
ssh-port-forward
ports
:
-
port
:
9000
-
port
:
443
protocol
:
TCP
-
port
:
80
protocol
:
TCP
-
it
:
add
in
gress rule by values
-
it
:
add
e
gress rule
s
by values
set
:
networkPolicy
:
ssoPublicIp
:
51.89.117.53/32
dnsServerNamespace
:
test-dns-namespace
additionalEgressConfig
:
-
podSelector
:
matchLabels
:
c
omponent
:
client
2
-
to
:
-
ipBlock
:
c
idr
:
1.2.3.4/3
2
asserts
:
-
equal
:
-
contains
:
path
:
spec.egress
value
:
-
to
:
-
podSelector
:
matchLabels
:
component
:
vorgang-manager
ports
:
-
port
:
9090
protocol
:
TCP
-
to
:
-
namespaceSelector
:
matchLabels
:
kubernetes.io/metadata.name
:
kube-system
podSelector
:
matchLabels
:
k8s-app
:
kube-dns
ports
:
-
port
:
53
protocol
:
UDP
-
port
:
53
protocol
:
TCP
-
port
:
5353
protocol
:
UDP
-
port
:
5353
protocol
:
TCP
-
to
:
-
namespaceSelector
:
matchLabels
:
kubernetes.io/metadata.name
:
ssh-port-forward
ports
:
-
port
:
9000
protocol
:
TCP
-
to
:
-
podSelector
:
matchLabels
:
component
:
client2
content
:
to
:
-
ipBlock
:
cidr
:
1.2.3.4/32
-
it
:
test network policy disabled
set
:
...
...
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