Skip to content

Commit

Permalink
fix operator network policy for admission controller port (#642)
Browse files Browse the repository at this point in the history
* fix operator network policy for admission controller port

Signed-off-by: Amir Malka <amirm@armosec.io>

* update snapshot

Signed-off-by: Amir Malka <amirm@armosec.io>

---------

Signed-off-by: Amir Malka <amirm@armosec.io>
  • Loading branch information
amirmalka authored Mar 11, 2025
1 parent e2fc96d commit db3fad1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ spec:
{{ tpl (.Files.Get "assets/common-egress-rules.yaml") . | indent 4 }}
{{- end }}
ingress:
{{- if eq .Values.capabilities.admissionController "enable" }}
- ports:
- port: admission-port
protocol: TCP
{{- end }}
- from:
- podSelector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3498,6 +3498,9 @@ all capabilities:
- ipBlock:
cidr: 1.1.1.1/32
ingress:
- ports:
- port: admission-port
protocol: TCP
- from:
- podSelector:
matchLabels:
Expand Down

0 comments on commit db3fad1

Please sign in to comment.