diff --git a/deploy/klusterlet/chart/klusterlet/values.yaml b/deploy/klusterlet/chart/klusterlet/values.yaml index a4dab739b..94f7c50cd 100644 --- a/deploy/klusterlet/chart/klusterlet/values.yaml +++ b/deploy/klusterlet/chart/klusterlet/values.yaml @@ -1,5 +1,5 @@ -replicaCount: 3 +replicaCount: 1 # image configurations for all images used in operator deployment and klusterlet CR. images: diff --git a/deploy/klusterlet/config/operator/operator.yaml b/deploy/klusterlet/config/operator/operator.yaml index 345cad235..e4bbaaa4a 100644 --- a/deploy/klusterlet/config/operator/operator.yaml +++ b/deploy/klusterlet/config/operator/operator.yaml @@ -8,7 +8,7 @@ metadata: labels: app: klusterlet spec: - replicas: 3 + replicas: 1 selector: matchLabels: app: klusterlet diff --git a/deploy/klusterlet/olm-catalog/latest/manifests/klusterlet.clusterserviceversion.yaml b/deploy/klusterlet/olm-catalog/latest/manifests/klusterlet.clusterserviceversion.yaml index a2b90ef86..61150d197 100644 --- a/deploy/klusterlet/olm-catalog/latest/manifests/klusterlet.clusterserviceversion.yaml +++ b/deploy/klusterlet/olm-catalog/latest/manifests/klusterlet.clusterserviceversion.yaml @@ -31,7 +31,7 @@ metadata: categories: Integration & Delivery,OpenShift Optional certified: "false" containerImage: quay.io/open-cluster-management/registration-operator:latest - createdAt: "2025-01-16T23:45:52Z" + createdAt: "2025-01-20T02:57:55Z" 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 @@ -268,7 +268,7 @@ spec: app: klusterlet name: klusterlet spec: - replicas: 3 + replicas: 1 selector: matchLabels: app: klusterlet diff --git a/pkg/operator/helpers/chart/render.go b/pkg/operator/helpers/chart/render.go index ddd698f62..2aebfc936 100644 --- a/pkg/operator/helpers/chart/render.go +++ b/pkg/operator/helpers/chart/render.go @@ -34,7 +34,7 @@ func NewDefaultClusterManagerChartConfig() *ClusterManagerChartConfig { func NewDefaultKlusterletChartConfig() *KlusterletChartConfig { return &KlusterletChartConfig{ - ReplicaCount: 3, + ReplicaCount: 1, Klusterlet: KlusterletConfig{ Create: true, }, diff --git a/pkg/registration/hub/importer/importer.go b/pkg/registration/hub/importer/importer.go index fa0e35599..9aea01030 100644 --- a/pkg/registration/hub/importer/importer.go +++ b/pkg/registration/hub/importer/importer.go @@ -173,8 +173,9 @@ func (i *Importer) reconcile( return cluster, nil } - // render the klsuterlet chart config + // render the klusterlet chart config klusterletChartConfig := &chart.KlusterletChartConfig{ + ReplicaCount: 1, CreateNamespace: true, Klusterlet: chart.KlusterletConfig{ Create: true,