helm-toolkit: netpol requires DNS-1123 names

Ensures that network policy names do not have underscores.

Change-Id: I09faa30b7402daa6f8ff8591d17040e2f94d1c20
This commit is contained in:
Sphicas, Phil (ps3910) 2019-10-15 13:55:37 -07:00 committed by Tin Lam
parent 9090278f46
commit ef58054dff

View File

@ -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 }}