Skip to content

Make LeaderElection accessible #526

Closed
@kuritka

Description

The LeaderElection controller property is hardcoded. Currently set to false.

  • Make LeaderElection accessible via environment variable (and if necessary, provide another implementation to make the leader election work)
  • Provide tests to prove that the leaderelection mechanism works
	mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
		Scheme:             runtimescheme,
		MetricsBindAddress: config.MetricsAddress,
		Port:               9443,
		LeaderElection:     false, // <---- config.LeaderElection
		LeaderElectionID:   "8020e9ff.absa.oss",
	})

Activity

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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions