No more netpols fo pods in open namespaces.
This commit is contained in:
1 parent
6d05f0501f
commit
933b46c68c
4 files changed
+6
-6
No files matched your search
@@ -35,11 +35,12 @@
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if not .app.Namespace.Open }}
|
||||
kind: NetworkPolicy
|
||||
apiVersion: networking.k8s.io/v1
|
||||
metadata:
|
||||
name: "{{.app.Name}}"
|
||||
namespace: "{{.app.Namespace}}"
|
||||
namespace: "{{.app.Namespace.Name }}"
|
||||
labels: {{ .labels | toYaml | nindent 4 }}
|
||||
spec:
|
||||
podSelector: {{ .app.MatchLabels | toYaml | nindent 4 }}
|
||||
@@ -65,4 +66,4 @@ spec:
|
||||
{{- template "networks" .egress }}
|
||||
{{- end }}
|
||||
|
||||
THEEND
|
||||
{{- end }}
|
||||
Reference in new issue
Block a user