Merge pull request #5660 from nyarly/helm-template-fix
Fix for Go 1.14 templating
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user