Skip to content

Conversation

@cc-datum
Copy link

Summary

This PR adds support for configuring the namespace used by the leader election candidate controller.
Previously, the candidate namespace was hardcoded to datum-system, which caused conflicts when running multiple milo instances in different namespaces (e.g., preview environments).

Details

  • Introduced a new LeaderElectionConfig struct under infraCluster to define CandidateNamespace.
  • Updated controller-manager to read the namespace value from infraCluster.LeaderElection.CandidateNamespace instead of a fixed string.
  • Exposed a new CLI flag --leader-election-candidate-namespace for configuration.
  • Added environment variable (LEADER_ELECTION_CANDIDATE_NAMESPACE) and argument in the controller manager deployment manifest.

Closes #389

@joggrbot
Copy link
Contributor

joggrbot bot commented Oct 30, 2025

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: d9f7f26 | Powered by Joggr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Leader election hardcodes datum-system namespace, causing controllers to reconcile across namespaces

2 participants