File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
charts/gitops-runtime/templates/_components/gitops-operator/rbac Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,15 @@ subjects:
89
89
namespace : {{ .Release.Namespace }}
90
90
---
91
91
apiVersion : rbac.authorization.k8s.io/v1
92
- kind : ClusterRoleBinding
92
+ kind : {{ .Values.singleNamespace | ternary "RoleBinding" " ClusterRoleBinding" }}
93
93
metadata :
94
94
labels :
95
95
{{- include "gitops-operator.selectorLabels" . | nindent 4 }}
96
96
name : {{ .Values.singleNamespace | ternary (printf "codefresh-gitops-operator-workflows-%s" .Release.Namespace) "codefresh-gitops-operator-workflows" }}
97
97
roleRef :
98
98
apiGroup : rbac.authorization.k8s.io
99
- kind : ClusterRole
100
- name : argo-edit
99
+ kind : {{ .Values.singleNamespace | ternary "Role" " ClusterRole" }}
100
+ name : {{ .Values.singleNamespace | ternary " argo-workflow-controller" "argo- edit" }}
101
101
subjects :
102
102
- kind : ServiceAccount
103
103
name : {{ include "gitops-operator.serviceAccountName" . }}
You can’t perform that action at this time.
0 commit comments