1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

NetworkPolicy: from should be an array of objects (#2423)

This commit is contained in:
Naman Lakhwani 2021-09-24 23:52:57 +05:30 committed by GitHub
parent 6672a0caa3
commit 63f5c09297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,20 +15,20 @@ spec:
ingress:
- from:
{{- with .Values.networkPolicy }}
namespaceSelector:
matchExpressions:
{{- toYaml .namespaceExpressions | nindent 8 }}
matchLabels:
{{- range $key, $value := .namespaceLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
podSelector:
matchExpressions:
{{- toYaml .podExpressions | nindent 8 }}
matchLabels:
{{- range $key, $value := .podLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
- namespaceSelector:
matchExpressions:
{{- toYaml .namespaceExpressions | nindent 10 }}
matchLabels:
{{- range $key, $value := .namespaceLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
podSelector:
matchExpressions:
{{- toYaml .podExpressions | nindent 10 }}
matchLabels:
{{- range $key, $value := .podLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- end }}
ports:
- protocol: TCP