Skip to content

Add --leader-election-namespace flag#346

Open
felix-kaestner wants to merge 1 commit intomainfrom
chore/leaderelection
Open

Add --leader-election-namespace flag#346
felix-kaestner wants to merge 1 commit intomainfrom
chore/leaderelection

Conversation

@felix-kaestner
Copy link
Copy Markdown
Contributor

Allows overriding the namespace where the leader election Lease resource is created. This is useful when deploying to clusters where the operator's own namespace may not exist at startup (e.g. Gardener shoot clusters). Point it at any namespace guaranteed to exist (like kube-system) and ensure the ServiceAccount has RBAC to manage Leases there.

When unset, controller-runtime auto-detects from the in-cluster service account namespace, preserving current behavior.

Allows overriding the namespace where the leader election Lease
resource is created. This is useful when deploying to clusters
where the operator's own namespace may not exist at startup
(e.g. Gardener shoot clusters). Point it at any namespace
guaranteed to exist (like kube-system) and ensure the
ServiceAccount has RBAC to manage Leases there.

When unset, controller-runtime auto-detects from the in-cluster
service account namespace, preserving current behavior.

Signed-off-by: Felix Kästner <felix.kaestner@sap.com>
@felix-kaestner felix-kaestner requested a review from a team as a code owner May 8, 2026 16:40
@hardikdr hardikdr added the area/switch-automation Automation processes for network switch management and operations. label May 9, 2026
@hardikdr hardikdr added this to Roadmap May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/switch-automation Automation processes for network switch management and operations. size/XS

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants