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