Skip to content

Commit 93f73f6

Browse files
authored
fix(chart): controller and user rbac (#4)
1 parent 1bc8ed5 commit 93f73f6

File tree

7 files changed

+142
-51
lines changed

7 files changed

+142
-51
lines changed

chart/k8sgrowthbook-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ keywords:
1515
name: k8sgrowthbook-controller
1616
sources:
1717
- https://github.com/DoodleScheduling/k8sgrowthbook-controller
18-
version: 0.0.3
18+
version: 0.0.5

chart/k8sgrowthbook-controller/templates/clusterrole-edit.yaml

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ metadata:
1414
{{- toYaml .Values.annotations | nindent 4 }}
1515
rules:
1616
- apiGroups:
17-
- "growthbook.infra.doodle.com"
17+
- growthbook.infra.doodle.com
18+
resources:
19+
- growthbookclients
20+
verbs:
21+
- create
22+
- delete
23+
- get
24+
- list
25+
- patch
26+
- update
27+
- watch
28+
- apiGroups:
29+
- growthbook.infra.doodle.com
1830
resources:
1931
- growthbookfeatures
2032
verbs:
@@ -26,9 +38,47 @@ rules:
2638
- update
2739
- watch
2840
- apiGroups:
29-
- "growthbook.infra.doodle.com"
41+
- growthbook.infra.doodle.com
42+
resources:
43+
- growthbookinstances
44+
verbs:
45+
- create
46+
- delete
47+
- get
48+
- list
49+
- patch
50+
- update
51+
- watch
52+
- apiGroups:
53+
- growthbook.infra.doodle.com
54+
resources:
55+
- growthbookinstances/status
56+
verbs:
57+
- get
58+
- patch
59+
- update
60+
- apiGroups:
61+
- growthbook.infra.doodle.com
62+
resources:
63+
- growthbookorganizations
64+
verbs:
65+
- create
66+
- delete
67+
- get
68+
- list
69+
- patch
70+
- update
71+
- watch
72+
- apiGroups:
73+
- growthbook.infra.doodle.com
3074
resources:
31-
- growthbookfeatures/status
75+
- growthbookusers
3276
verbs:
77+
- create
78+
- delete
3379
- get
80+
- list
81+
- patch
82+
- update
83+
- watch
3484
{{- end }}

chart/k8sgrowthbook-controller/templates/clusterrole-view.yaml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,49 @@ metadata:
1313
{{- toYaml .Values.annotations | nindent 4 }}
1414
rules:
1515
- apiGroups:
16-
- "growthbook.infra.doodle.com"
16+
- growthbook.infra.doodle.com
17+
resources:
18+
- growthbookclients
19+
verbs:
20+
- get
21+
- list
22+
- watch
23+
- apiGroups:
24+
- growthbook.infra.doodle.com
1725
resources:
1826
- growthbookfeatures
1927
verbs:
2028
- get
2129
- list
2230
- watch
2331
- apiGroups:
24-
- "growthbook.infra.doodle.com"
32+
- growthbook.infra.doodle.com
33+
resources:
34+
- growthbookinstances
35+
verbs:
36+
- get
37+
- list
38+
- watch
39+
- apiGroups:
40+
- growthbook.infra.doodle.com
2541
resources:
26-
- growthbookfeatures/status
42+
- growthbookinstances/status
2743
verbs:
2844
- get
45+
- apiGroups:
46+
- growthbook.infra.doodle.com
47+
resources:
48+
- growthbookorganizations
49+
verbs:
50+
- get
51+
- list
52+
- watch
53+
- apiGroups:
54+
- growthbook.infra.doodle.com
55+
resources:
56+
- growthbookusers
57+
verbs:
58+
- get
59+
- list
60+
- watch
2961
{{- end }}

chart/k8sgrowthbook-controller/templates/clusterrole.yaml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,32 @@ rules:
1414
- apiGroups:
1515
- ""
1616
resources:
17-
- services
17+
- events
1818
verbs:
19-
- get
20-
- list
21-
- watch
19+
- create
20+
- patch
2221
- apiGroups:
23-
- "growthbook.infra.doodle.com"
22+
- ""
23+
resources:
24+
- secrets
25+
verbs:
26+
- get
27+
- list
28+
- watch
29+
- apiGroups:
30+
- growthbook.infra.doodle.com
31+
resources:
32+
- growthbookclients
33+
verbs:
34+
- create
35+
- delete
36+
- get
37+
- list
38+
- patch
39+
- update
40+
- watch
41+
- apiGroups:
42+
- growthbook.infra.doodle.com
2443
resources:
2544
- growthbookfeatures
2645
verbs:
@@ -32,17 +51,41 @@ rules:
3251
- update
3352
- watch
3453
- apiGroups:
35-
- "growthbook.infra.doodle.com"
54+
- growthbook.infra.doodle.com
55+
resources:
56+
- growthbookinstances
57+
verbs:
58+
- create
59+
- delete
60+
- get
61+
- list
62+
- patch
63+
- update
64+
- watch
65+
- apiGroups:
66+
- growthbook.infra.doodle.com
3667
resources:
37-
- growthbookfeatures/status
68+
- growthbookinstances/status
3869
verbs:
3970
- get
4071
- patch
4172
- update
4273
- apiGroups:
43-
- ""
74+
- growthbook.infra.doodle.com
4475
resources:
45-
- events
76+
- growthbookorganizations
77+
verbs:
78+
- create
79+
- delete
80+
- get
81+
- list
82+
- patch
83+
- update
84+
- watch
85+
- apiGroups:
86+
- growthbook.infra.doodle.com
87+
resources:
88+
- growthbookusers
4689
verbs:
4790
- create
4891
- delete

chart/k8sgrowthbook-controller/templates/role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ rules:
3535
- create
3636
- delete
3737
- update
38-
- get
38+
- get

chart/k8sgrowthbook-controller/templates/service.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

chart/k8sgrowthbook-controller/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ podAnnotations: {}
4141

4242
metricsPort: "9556"
4343
probesPort: "9557"
44-
httpPort: "8080"
4544

4645
# Change the metrics path
4746
metricsPath: /metrics
@@ -93,11 +92,6 @@ podSecurityContext:
9392
runAsNonRoot: true
9493
runAsUser: 10000
9594

96-
service:
97-
labels: {}
98-
annotations: {}
99-
type: ClusterIP
100-
10195
serviceAccount:
10296
create: true
10397
# If create is true and name is not set, then a name is generated using the

0 commit comments

Comments
 (0)