Skip to content

Commit 181c7ce

Browse files
authored
fix: app-proxy fails to create a Workflow instance (#1008)
Ensure the RoleBinding kind is explicitly set to "RoleBinding" and the role is set to "Role" for the app-proxy Argo workflows. This change improves clarity and consistency in the RBAC configuration.
1 parent b4a4294 commit 181c7ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/gitops-runtime/templates/app-proxy/workflows-crb.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
{{- $_ := set $appProxyContext "Values" (deepCopy (get .Values "app-proxy")) }}
55
{{- $_ := set $appProxyContext.Values "global" (deepCopy (get .Values "global")) }}
66
apiVersion: rbac.authorization.k8s.io/v1
7-
kind: {{ $appProxyContext.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}
7+
kind: RoleBinding
88
metadata:
99
name: cap-app-proxy-argo-workflows
1010
roleRef:
1111
apiGroup: rbac.authorization.k8s.io
12-
kind: {{ $appProxyContext.Values.global.runtime.singleNamespace | ternary "Role" "ClusterRole" }}
12+
kind: Role
1313
name: {{ include "codefresh-gitops-runtime.argo-workflows.server.name" . }}
1414
subjects:
1515
- kind: ServiceAccount

0 commit comments

Comments
 (0)