-
Notifications
You must be signed in to change notification settings - Fork 891
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
karmada operator: change karmada system namespace to karmada-system
#3750
karmada operator: change karmada system namespace to karmada-system
#3750
Conversation
karmada-system
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3750 +/- ##
==========================================
- Coverage 53.84% 53.83% -0.02%
==========================================
Files 231 231
Lines 23062 23062
==========================================
- Hits 12418 12415 -3
- Misses 9967 9970 +3
Partials 677 677
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Does this also mean that the namespace is not configurable? Must be |
@Poor12 Indeed, the |
From my perspective, I think the namespace of components should be the same with the namespace of Karmada CR. |
@Poor12 If so, the system namespace of karmada instance seems to be different. |
Yeah, in that way, the namespace of default Karmada CR should be |
cc24cfd
to
45c9b50
Compare
@RainbowMango @jwcesign Do you have any comments? |
@@ -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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following two places still referencing the names with data.GetNamespace
, I guess should be updated accordingly, right?
return fmt.Errorf("failed to create namespace %s, err: %w", data.GetNamespace(), err) |
klog.V(2).InfoS("[systemName] Successfully created karmada system namespace", "namespace", data.GetNamespace(), "karmada", klog.KObj(data)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's right. the namespace message of these logs should be consistent.
updated, thanks.
Signed-off-by: calvin <[email protected]>
45c9b50
to
c422952
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Change the karmada controlplane system namespace to
karmada-system
. keep the same behavior with chart and karmadactl.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: