Skip to content

Commit c4a50c9

Browse files
author
Brendan Shephard
committed
Add watch to ImageContentSourcePolicy permissions
Adding the watch permission will suppress the large number of errors being reported by the openstack-operator related to watching ICSP objects. Jira: https://issues.redhat.com/browse/OSPRH-12713 Signed-off-by: Brendan Shephard <bshephar@redhat.com>
1 parent 6aafc22 commit c4a50c9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

config/rbac/role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ rules:
661661
verbs:
662662
- get
663663
- list
664+
- watch
664665
- apiGroups:
665666
- ovn.openstack.org
666667
resources:

controllers/dataplane/openstackdataplanenodeset_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *OpenStackDataPlaneNodeSetReconciler) GetLogger(ctx context.Context) log
123123
// +kubebuilder:rbac:groups="image.openshift.io",resources=imagestreamtags,verbs=get;list;watch
124124

125125
// RBAC for ImageContentSourcePolicy and MachineConfig
126-
// +kubebuilder:rbac:groups="operator.openshift.io",resources=imagecontentsourcepolicies,verbs=get;list
126+
// +kubebuilder:rbac:groups="operator.openshift.io",resources=imagecontentsourcepolicies,verbs=get;list;watch
127127
// +kubebuilder:rbac:groups="machineconfiguration.openshift.io",resources=machineconfigs,verbs=get;list;watch
128128

129129
// Reconcile is part of the main kubernetes reconciliation loop which aims to

0 commit comments

Comments
 (0)