Skip to content

Commit f1a16b0

Browse files
lmicciniclaude
andcommitted
Add RBAC annotation for Services to InstanceHA controller
The controller creates a metrics Service but was missing the kubebuilder RBAC marker for core/services. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6227cb3 commit f1a16b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/controller/instanceha/instanceha_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func (r *Reconciler) GetLogger(ctx context.Context) logr.Logger {
8181
// +kubebuilder:rbac:groups=instanceha.openstack.org,resources=instancehas/finalizers,verbs=update;patch
8282
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;
8383
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;
84+
// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete
8485
// +kubebuilder:rbac:groups=k8s.cni.cncf.io,resources=network-attachment-definitions,verbs=get;list;watch
8586
// service account, role, rolebinding
8687
// +kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch;create;update;patch

0 commit comments

Comments
 (0)