Skip to content

[18-stable] Remove unnecessary pods RBAC permissions - #689

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-682-to-18-stable
Jul 29, 2026
Merged

[18-stable] Remove unnecessary pods RBAC permissions#689
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-682-to-18-stable

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #682

/assign stuggi

The workload rbacRules in cinder_controller.go granted the workload
service account full CRUD (create/delete/get/list/patch/update/watch)
on core Pods, but that service account never reads or writes Pod
objects directly. Remove the unused rbacRules grant.

The kubebuilder RBAC markers for pods are kept (get;list), and
restored on CinderAPI, CinderBackup, CinderScheduler and CinderVolume
where they were removed: lib-common's VerifyNetworkStatusFromAnnotation,
called from those four controllers to verify NetworkAttachments, lists
Pods using the controller-manager's own client, so the manager's
ClusterRole (config/rbac/role.yaml) still needs get;list on pods.
Regenerate config/rbac/role.yaml.

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>

@stuggi stuggi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jul 29, 2026
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit ef5fa55 into openstack-k8s-operators:18-stable Jul 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants