diff --git a/helm-toolkit/templates/manifests/_network_policy.tpl b/helm-toolkit/templates/manifests/_network_policy.tpl index 8be73f00d..645676586 100644 --- a/helm-toolkit/templates/manifests/_network_policy.tpl +++ b/helm-toolkit/templates/manifests/_network_policy.tpl @@ -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 }}