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

introduce --leader-elect-resource-namespace flag #698

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

XiShanYongYe-Chang
Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang commented Sep 4, 2021

Signed-off-by: changzhen [email protected]

What type of PR is this?

/kind feature

What this PR does / why we need it:

User may want to deploy karmada to different namespace, so it makes sense to change Options.LeaderElection.ResourceNamespace to be configurable.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

karmada-controller-manager/karmada-scheduler/karmada-agent: introduced --leader-elect-resource-namespace flag to specify the namespace of resource object that is used for locking during leader election.

@karmada-bot karmada-bot added kind/feature Categorizes issue or PR as related to a new feature. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 4, 2021
cmd/agent/app/options/options.go Outdated Show resolved Hide resolved
@pigletfly
Copy link
Contributor

/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2021
@karmada-bot karmada-bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2021
@RainbowMango
Copy link
Member

/retitle introduce --leader-elect-resource-namespace flag

@karmada-bot karmada-bot changed the title Options.LeaderElection.ResourceNamespace should be changed to configurable introduce --leader-elect-resource-namespace flag Sep 6, 2021
@RainbowMango RainbowMango added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Sep 6, 2021
@RainbowMango
Copy link
Member

Hi @pigletfly
The flag now has been changed to --leader-elect-resource-namespace according to the comment, can you help take another look?

@pigletfly
Copy link
Contributor

/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 6, 2021
@RainbowMango RainbowMango added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2021
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@RainbowMango
Copy link
Member

OK. Thanks.

@karmada-bot karmada-bot merged commit 0b57a5f into karmada-io:master Sep 6, 2021
@XiShanYongYe-Chang XiShanYongYe-Chang deleted the configure-ns branch September 6, 2021 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants