Merge pull request #5660 from nyarly/helm-template-fix

Fix for Go 1.14 templating
This commit is contained in:
Travis Nielsen authored and GitHub committed 2020-06-26 12:28:22 -06:00
commit 7ea52b1ae3
1 file changed
+2 -1
@@ -281,7 +281,8 @@ rules:
verbs:
- get
- list
{{- if ((.Values.agent) and .Values.agent.mountSecurityMode) and ne .Values.agent.mountSecurityMode "Any" }}
# Use a default dict to avoid 'can't give argument to non-function' errors from text/template
{{- if ne ((.Values.agent | default (dict "mountSecurityMode" "")).mountSecurityMode) "Any" }}
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole