Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/acm-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
version: 1.1.0
repository: https://rh-mobb.github.io/validated-pattern-helm-charts/
name: acm-operator
version: 0.5.19
version: 0.5.20
apiVersion: v2
description: Chart to deploy Red Hat Advanced Cluster Management (RHACM) with ArgoCD ApplicationSets for spoke cluster management
43 changes: 43 additions & 0 deletions charts/acm-operator/templates/applicationset-controller-rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# The clusterDecisionResource generator in ApplicationSets requires the
# ApplicationSet controller to read ACM PlacementDecisions. The GitOps
# operator does not grant this by default.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand All @@ -15,6 +18,7 @@ rules:
- list
- watch
---
# Bind to openshift-gitops ApplicationSet controller
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -30,6 +34,8 @@ subjects:
name: cluster-gitops-applicationset-controller
namespace: openshift-gitops
---
# Bind to application-gitops ApplicationSet controller so team
# ApplicationSets in *-team namespaces can use clusterDecisionResource
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -44,3 +50,40 @@ subjects:
- kind: ServiceAccount
name: application-gitops-applicationset-controller
namespace: application-gitops
---
# When applicationSet.sourceNamespaces is set on the ArgoCD CR, the
# ApplicationSet controller needs cluster-scoped read access to AppProjects
# to validate project membership across namespaces. The OpenShift GitOps
# operator does not add this to the controller's ClusterRole automatically.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: applicationset-appproject-reader
annotations:
argocd.argoproj.io/sync-wave: "10"
rules:
- apiGroups:
- argoproj.io
resources:
- appprojects
verbs:
- get
- list
- watch
---
# Bind to application-gitops ApplicationSet controller which has
# applicationSet.sourceNamespaces: ["*-team", "application-gitops"]
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: application-gitops-applicationset-appproject-reader
annotations:
argocd.argoproj.io/sync-wave: "10"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: applicationset-appproject-reader
subjects:
- kind: ServiceAccount
name: application-gitops-applicationset-controller
namespace: application-gitops
Loading