Skip to content

Commit 067e9dd

Browse files
author
tazhate
committed
fix(helm): grant RBAC for ChainVersionCatalog and PodMonitor
Chart's manager ClusterRole was out of sync with config/rbac/role.yaml — controller couldn't list/watch chainversioncatalogs (cluster-scoped CRD) and was failing with forbidden errors after CRD was shipped in 1f17eae. Context: investigated controller crashloop in chainplane-system, looked at pod logs showing repeated reflector "forbidden" errors for chainversioncatalogs and traced the missing rules by diffing the helm template against generated config/rbac/role.yaml. Took ~15min.
1 parent 1f17eae commit 067e9dd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

charts/chainplane/templates/clusterrole.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ rules:
99
- chains.chainplane.io
1010
resources:
1111
- chaininstances
12+
- chainversioncatalogs
1213
verbs:
1314
- create
1415
- delete
@@ -21,16 +22,30 @@ rules:
2122
- chains.chainplane.io
2223
resources:
2324
- chaininstances/finalizers
25+
- chainversioncatalogs/finalizers
2426
verbs:
2527
- update
2628
- apiGroups:
2729
- chains.chainplane.io
2830
resources:
2931
- chaininstances/status
32+
- chainversioncatalogs/status
3033
verbs:
3134
- get
3235
- patch
3336
- update
37+
- apiGroups:
38+
- monitoring.coreos.com
39+
resources:
40+
- podmonitors
41+
verbs:
42+
- create
43+
- delete
44+
- get
45+
- list
46+
- patch
47+
- update
48+
- watch
3449
- apiGroups:
3550
- apps
3651
resources:

0 commit comments

Comments
 (0)