From 277d004f0a8768bcc552a910c3a80c29e835faef Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:02:58 +0000 Subject: [PATCH] [create-pull-request] automated change (#1159) Signed-off-by: GitHub Co-authored-by: openshift-merge-bot --- .../templates/cluster-manager-clusterrole.yaml | 8 ++++++++ .../toggle/cluster-manager/templates/cluster-manager.yaml | 4 ++-- pkg/templates/rbac_gen.go | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) 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..f0c20a80e 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: @@ -69,8 +71,6 @@ spec: scheme: HTTPS initialDelaySeconds: 2 resources: - limits: - memory: 2Gi requests: cpu: 2m memory: 16Mi 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