Start import in registration by feature gate. (#775)

* Update clustermanager operator to support capi

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Update operator to start importer

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
Jian Qiu
2024-12-20 09:12:10 +08:00
committed by GitHub
parent 3f9b8867eb
commit b568123849
18 changed files with 334 additions and 209 deletions

View File

@@ -150,3 +150,6 @@ rules:
- apiGroups: ["multicluster.x-k8s.io"]
resources: ["clusterprofiles/status"]
verbs: ["update", "patch"]
- apiGroups: [ "cluster.x-k8s.io" ]
resources: [ "clusters" ]
verbs: ["get", "list", "watch"]

View File

@@ -42,6 +42,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: AGENT_IMAGE
value: {{ template "operatorImage" . }}
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
livenessProbe:

View File

@@ -53,6 +53,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: AGENT_IMAGE
value: quay.io/open-cluster-management/registration-operator:latest
securityContext:
allowPrivilegeEscalation: false
capabilities:

View File

@@ -152,3 +152,6 @@ rules:
- apiGroups: ["multicluster.x-k8s.io"]
resources: ["clusterprofiles/status"]
verbs: ["update", "patch"]
- apiGroups: [ "cluster.x-k8s.io" ]
resources: [ "clusters" ]
verbs: ["get", "list", "watch"]

View File

@@ -59,7 +59,7 @@ metadata:
categories: Integration & Delivery,OpenShift Optional
certified: "false"
containerImage: quay.io/open-cluster-management/registration-operator:latest
createdAt: "2024-12-02T08:08:47Z"
createdAt: "2024-12-18T07:51:41Z"
description: Manages the installation and upgrade of the ClusterManager.
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -525,6 +525,14 @@ spec:
verbs:
- update
- patch
- apiGroups:
- cluster.x-k8s.io
resources:
- clusters
verbs:
- get
- list
- watch
serviceAccountName: cluster-manager
deployments:
- label:
@@ -571,6 +579,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: AGENT_IMAGE
value: quay.io/open-cluster-management/registration-operator:latest
image: quay.io/open-cluster-management/registration-operator:latest
imagePullPolicy: IfNotPresent
livenessProbe:

View File

@@ -31,7 +31,7 @@ metadata:
categories: Integration & Delivery,OpenShift Optional
certified: "false"
containerImage: quay.io/open-cluster-management/registration-operator:latest
createdAt: "2024-12-02T08:08:47Z"
createdAt: "2024-12-18T07:51:42Z"
description: Manages the installation and upgrade of the Klusterlet.
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3