Fix indentation
The network policy helm toolkit function currently produces an incorrectly indented policyTypes in the network policy manifest. This patch set redresses that and also removes some additional blank lines in the manifest. Change-Id: I0a4d5735a1a0ff13c317ffd95688973cc1cc3dfd Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
4e7c9ac479
commit
6e4785d189
@ -91,23 +91,23 @@ metadata:
|
||||
spec:
|
||||
{{- if hasKey (index $envAll.Values "network_policy") $label }}
|
||||
policyTypes:
|
||||
{{ $is_egress := false }}
|
||||
{{- $is_egress := false -}}
|
||||
{{- if hasKey (index $envAll.Values.network_policy $label) "policyTypes" }}
|
||||
{{- if has "Egress" (index $envAll.Values.network_policy $label "policyTypes") }}
|
||||
{{ $is_egress = true }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ if or $is_egress (index $envAll.Values.network_policy $label "egress") }}
|
||||
- Egress
|
||||
- Egress
|
||||
{{- end }}
|
||||
{{ $is_ingress := false }}
|
||||
{{- $is_ingress := false -}}
|
||||
{{- if hasKey (index $envAll.Values.network_policy $label) "policyTypes" }}
|
||||
{{- if has "Ingress" (index $envAll.Values.network_policy $label "policyTypes") }}
|
||||
{{ $is_ingress = true }}
|
||||
{{- $is_ingress = true -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ if or $is_ingress (index $envAll.Values.network_policy $label "ingress") }}
|
||||
- Ingress
|
||||
- Ingress
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
podSelector:
|
||||
|
Loading…
x
Reference in New Issue
Block a user