helm-toolkit: netpol requires DNS-1123 names
Ensures that network policy names do not have underscores. Change-Id: I09faa30b7402daa6f8ff8591d17040e2f94d1c20
This commit is contained in:
parent
9090278f46
commit
ef58054dff
@ -86,7 +86,7 @@ return: |
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: {{ $label }}-netpol
|
||||
name: {{ $label | replace "_" "-" }}-netpol
|
||||
namespace: {{ $envAll.Release.Namespace }}
|
||||
spec:
|
||||
{{- if hasKey (index $envAll.Values "network_policy") $label }}
|
||||
|
Loading…
Reference in New Issue
Block a user