From a22e5ed80b31de98e7ed0b042b5f5eca7d8c35f8 Mon Sep 17 00:00:00 2001 From: openshift-merge-bot Date: Mon, 23 Dec 2024 12:07:58 +0000 Subject: [PATCH] [create-pull-request] automated change Signed-off-by: GitHub --- .../templates/cluster-manager-clusterrole.yaml | 8 ++++++++ .../toggle/cluster-manager/templates/cluster-manager.yaml | 2 ++ pkg/templates/rbac_gen.go | 1 + 3 files changed, 11 insertions(+) diff --git a/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager-clusterrole.yaml b/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager-clusterrole.yaml index 14cc12eb2..b1f3e2e33 100644 --- a/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager-clusterrole.yaml +++ b/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager-clusterrole.yaml @@ -417,3 +417,11 @@ rules: verbs: - update - patch +- apiGroups: + - cluster.x-k8s.io + resources: + - clusters + verbs: + - get + - list + - watch diff --git a/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager.yaml b/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager.yaml index 6dc821cdc..eecb6a725 100644 --- a/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager.yaml +++ b/pkg/templates/charts/toggle/cluster-manager/templates/cluster-manager.yaml @@ -52,6 +52,8 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + - name: AGENT_IMAGE + value: '{{ .Values.global.imageOverrides.registration_operator }}' image: '{{ .Values.global.imageOverrides.registration_operator }}' imagePullPolicy: '{{ .Values.global.pullPolicy }}' livenessProbe: diff --git a/pkg/templates/rbac_gen.go b/pkg/templates/rbac_gen.go index c02b31bc1..a3864e7d9 100644 --- a/pkg/templates/rbac_gen.go +++ b/pkg/templates/rbac_gen.go @@ -242,6 +242,7 @@ package main //+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusterclasses,verbs=get;list;patch;update;watch //+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusterclasses;clusterclasses/status,verbs=get;list;patch;update;watch //+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch +//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch //+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters;clusters/finalizers;clusters/status,verbs=get;list;patch;update;watch //+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters;clusters/status,verbs=get;list;patch;update;watch //+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters;clusters/status,verbs=get;list;watch