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/app-of-apps-acm-team-onboarding/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: app-of-apps-acm-team-onboarding
description: Chart to onboard teams on an ACM hub with AppProjects, RBAC, and placement infrastructure for spoke deployment via ApplicationSets
version: 0.3.0
version: 0.3.1
home: https://rh-mobb.github.io/validated-pattern-helm-charts/
maintainers:
- name: rh-mobb
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{{ range $app := .Values.applications }}
{{ if $app.gitopsCreate }}
---
# The application-gitops ApplicationSet controller needs write access in team
# namespaces to update ApplicationSet status and manage the Applications it
# generates. The GitOps operator only grants these permissions in the
# controller's home namespace (application-gitops), not in external
# sourceNamespaces.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: applicationset-controller
namespace: {{ $app.apmnum }}-{{ $app.appserviceNumber }}-team
rules:
- apiGroups:
- argoproj.io
resources:
- applicationsets/status
verbs:
- update
- patch
- apiGroups:
- argoproj.io
resources:
- applicationsets/finalizers
verbs:
- update
- apiGroups:
- argoproj.io
resources:
- applications
verbs:
- create
- get
- list
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: applicationset-controller
namespace: {{ $app.apmnum }}-{{ $app.appserviceNumber }}-team
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: applicationset-controller
subjects:
- kind: ServiceAccount
name: application-gitops-applicationset-controller
namespace: {{ $.Values.gitopsNamespace }}
{{- end }}
{{- end }}
Loading