Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 change replicas of klusterlet operator to 1 #813

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/klusterlet/chart/klusterlet/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

replicaCount: 3
replicaCount: 1

# image configurations for all images used in operator deployment and klusterlet CR.
images:
Expand Down
2 changes: 1 addition & 1 deletion deploy/klusterlet/config/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app: klusterlet
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: klusterlet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -268,7 +268,7 @@ spec:
app: klusterlet
name: klusterlet
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: klusterlet
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/helpers/chart/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewDefaultClusterManagerChartConfig() *ClusterManagerChartConfig {

func NewDefaultKlusterletChartConfig() *KlusterletChartConfig {
return &KlusterletChartConfig{
ReplicaCount: 3,
ReplicaCount: 1,
Klusterlet: KlusterletConfig{
Create: true,
},
Expand Down
3 changes: 2 additions & 1 deletion pkg/registration/hub/importer/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading