Skip to content

Commit

Permalink
karmada operator: change karmada system namespace
Browse files Browse the repository at this point in the history
Signed-off-by: calvin <[email protected]>
  • Loading branch information
calvin committed Sep 15, 2023
1 parent be9a371 commit 45c9b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions operator/pkg/controlplane/controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func getKarmadaControllerManagerManifest(name, namespace string, featureGates ma
}{
DeploymentName: util.KarmadaControllerManagerName(name),
Namespace: namespace,
SystemNamespace: namespace,
SystemNamespace: constants.KarmadaSystemNamespace,
Image: cfg.Image.Name(),
KubeconfigSecret: util.AdminKubeconfigSecretName(name),
Replicas: cfg.Replicas,
Expand All @@ -128,7 +128,7 @@ func getKarmadaSchedulerManifest(name, namespace string, featureGates map[string
}{
DeploymentName: util.KarmadaSchedulerName(name),
Namespace: namespace,
SystemNamespace: namespace,
SystemNamespace: constants.KarmadaSystemNamespace,
Image: cfg.Image.Name(),
KubeconfigSecret: util.AdminKubeconfigSecretName(name),
Replicas: cfg.Replicas,
Expand All @@ -155,7 +155,7 @@ func getKarmadaDeschedulerManifest(name, namespace string, featureGates map[stri
}{
DeploymentName: util.KarmadaDeschedulerName(name),
Namespace: namespace,
SystemNamespace: namespace,
SystemNamespace: constants.KarmadaSystemNamespace,
Image: cfg.Image.Name(),
KubeconfigSecret: util.AdminKubeconfigSecretName(name),
Replicas: cfg.Replicas,
Expand Down
2 changes: 1 addition & 1 deletion operator/pkg/tasks/init/karmadaresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func runSystemNamespace(r workflow.RunData) error {

err := apiclient.CreateNamespace(data.KarmadaClient(), &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: data.GetNamespace(),
Name: constants.KarmadaSystemNamespace,
},
})
if err != nil {
Expand Down

0 comments on commit 45c9b50

Please sign in to comment.