Skip to content

Commit 0a33b9e

Browse files
wip: Wed Jul 30 11:40:41 +03 2025
1 parent 8a0b0d4 commit 0a33b9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

charts/gitops-runtime/templates/_components/gitops-operator/rbac/_rbac_operator.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ subjects:
8989
namespace: {{ .Release.Namespace }}
9090
---
9191
apiVersion: rbac.authorization.k8s.io/v1
92-
kind: ClusterRoleBinding
92+
kind: {{ .Values.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}
9393
metadata:
9494
labels:
9595
{{- include "gitops-operator.selectorLabels" . | nindent 4 }}
9696
name: {{ .Values.singleNamespace | ternary (printf "codefresh-gitops-operator-workflows-%s" .Release.Namespace) "codefresh-gitops-operator-workflows" }}
9797
roleRef:
9898
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" }}
101101
subjects:
102102
- kind: ServiceAccount
103103
name: {{ include "gitops-operator.serviceAccountName" . }}

0 commit comments

Comments
 (0)