Skip to content

Commit bdb859a

Browse files
committed
Fix eks awsmanagedcontrolplane finalizer permission
Signed-off-by: serngawy <[email protected]>
1 parent f563206 commit bdb859a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

config/rbac/role.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ rules:
116116
- patch
117117
- update
118118
- watch
119+
- apiGroups:
120+
- controlplane.cluster.x-k8s.io
121+
resources:
122+
- awsmanagedcontrolplanes/finalizers
123+
- rosacontrolplanes/finalizers
124+
verbs:
125+
- update
119126
- apiGroups:
120127
- controlplane.cluster.x-k8s.io
121128
resources:
@@ -127,12 +134,6 @@ rules:
127134
- patch
128135
- update
129136
- watch
130-
- apiGroups:
131-
- controlplane.cluster.x-k8s.io
132-
resources:
133-
- rosacontrolplanes/finalizers
134-
verbs:
135-
- update
136137
- apiGroups:
137138
- infrastructure.cluster.x-k8s.io
138139
resources:

controlplane/eks/controllers/awsmanagedcontrolplane_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ func (r *AWSManagedControlPlaneReconciler) SetupWithManager(ctx context.Context,
206206
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsmachinepools;awsmachinepools/status,verbs=get;list;watch
207207
// +kubebuilder:rbac:groups=controlplane.cluster.x-k8s.io,resources=awsmanagedcontrolplanes,verbs=get;list;watch;update;patch;delete
208208
// +kubebuilder:rbac:groups=controlplane.cluster.x-k8s.io,resources=awsmanagedcontrolplanes/status,verbs=get;update;patch
209+
// +kubebuilder:rbac:groups=controlplane.cluster.x-k8s.io,resources=awsmanagedcontrolplanes/finalizers,verbs=update
209210
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsclusterroleidentities;awsclusterstaticidentities;awsclustercontrolleridentities,verbs=get;list;watch
210211
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsmanagedclusters;awsmanagedclusters/status,verbs=get;list;watch
211212

0 commit comments

Comments
 (0)