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:
parent
6672a0caa3
commit
63f5c09297
1 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue