From 978856f00163fe4035fc446af1fa286546b1890b Mon Sep 17 00:00:00 2001 From: Andrea Fasano Date: Mon, 7 Oct 2024 13:54:12 -0400 Subject: [PATCH] day2: additional rbac policy rules As required by https://issues.redhat.com//browse/AGENT-966 --- pkg/cli/admin/nodeimage/create.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkg/cli/admin/nodeimage/create.go b/pkg/cli/admin/nodeimage/create.go index 70ab1e94d2..f302c63fe7 100644 --- a/pkg/cli/admin/nodeimage/create.go +++ b/pkg/cli/admin/nodeimage/create.go @@ -850,9 +850,24 @@ func (c *BaseNodeImageCommand) createRolesAndBindings(ctx context.Context) error "clusterversions", "infrastructures", "proxies", + "imagedigestmirrorsets", + "imagecontentpolicies", }, Verbs: []string{ "get", + "list", + }, + }, + { + APIGroups: []string{ + "machineconfiguration.openshift.io", + }, + Resources: []string{ + "machineconfigs", + }, + Verbs: []string{ + "get", + "list", }, }, {