Repository navigation
Declare configmaps RBAC in the controllers watching the TLS profile - #1321
Conversation
The NovaAPI, NovaMetadata and CyborgAPI controllers watch the well-known template-defaults ConfigMap, but only placement/api_controller.go declared the configmaps permission, so the other three relied on the union of markers across the operator. If the placement grant is ever narrowed or removed, those watches silently lose access. Declare get/list/watch in each controller that uses the watch: get for the template defaults read, list and watch for the informer. The generated role is unchanged, as controller-gen unions the verbs with the existing rule. Signed-off-by: Francesco Pantano <fpantano@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fmount, stuggi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 00m 16s Warning: |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 44m 27s Warning: |
69a3926
into
openstack-k8s-operators:main
The
NovaAPI,NovaMetadataandCyborgAPIcontrollers watch the well-known template-defaultsConfigMap, but onlyplacementdeclared theconfigmapspermission, so the other three relied on the union of markers across the operator.If the placement grant is ever narrowed or removed, those watches silently lose access. Declare
get/list/watchin each controller that uses the watch: get for the template defaults read, list and watch for the informer.Note that the generated
roleis unchanged, as controller-gen unions the verbs with the existing rule.Jira: https://redhat.atlassian.net/browse/OSPRH-41044