Skip to content

Commit bc918e9

Browse files
authored
Merge pull request #21 from rh-mobb/foster/acm-stuff
added acm spoke hub clusters
2 parents 07f7c4a + 7db59bd commit bc918e9

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: app-of-apps-acm-team-onboarding
33
description: Chart to onboard teams on an ACM hub with AppProjects, RBAC, and placement infrastructure for spoke deployment via ApplicationSets
4-
version: 0.3.0
4+
version: 0.3.1
55
home: https://rh-mobb.github.io/validated-pattern-helm-charts/
66
maintainers:
77
- name: rh-mobb
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{{ range $app := .Values.applications }}
2+
{{ if $app.gitopsCreate }}
3+
---
4+
# The application-gitops ApplicationSet controller needs write access in team
5+
# namespaces to update ApplicationSet status and manage the Applications it
6+
# generates. The GitOps operator only grants these permissions in the
7+
# controller's home namespace (application-gitops), not in external
8+
# sourceNamespaces.
9+
apiVersion: rbac.authorization.k8s.io/v1
10+
kind: Role
11+
metadata:
12+
name: applicationset-controller
13+
namespace: {{ $app.apmnum }}-{{ $app.appserviceNumber }}-team
14+
rules:
15+
- apiGroups:
16+
- argoproj.io
17+
resources:
18+
- applicationsets/status
19+
verbs:
20+
- update
21+
- patch
22+
- apiGroups:
23+
- argoproj.io
24+
resources:
25+
- applicationsets/finalizers
26+
verbs:
27+
- update
28+
- apiGroups:
29+
- argoproj.io
30+
resources:
31+
- applications
32+
verbs:
33+
- create
34+
- get
35+
- list
36+
- update
37+
- patch
38+
- delete
39+
---
40+
apiVersion: rbac.authorization.k8s.io/v1
41+
kind: RoleBinding
42+
metadata:
43+
name: applicationset-controller
44+
namespace: {{ $app.apmnum }}-{{ $app.appserviceNumber }}-team
45+
roleRef:
46+
apiGroup: rbac.authorization.k8s.io
47+
kind: Role
48+
name: applicationset-controller
49+
subjects:
50+
- kind: ServiceAccount
51+
name: application-gitops-applicationset-controller
52+
namespace: {{ $.Values.gitopsNamespace }}
53+
{{- end }}
54+
{{- end }}

0 commit comments

Comments
 (0)