Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeaderElectionDefaulting ¶
func LeaderElectionDefaulting(config configv1.LeaderElection, defaultNamespace, defaultName string) configv1.LeaderElection
LeaderElectionDefaulting applies what we think are reasonable defaults. It does not mutate the original. We do defaulting outside the API so that we can change over time and know whether the user intended to override our values as opposed to simply getting the defaulted serialization at some point.
func ToConfigMapLeaderElection ¶
func ToConfigMapLeaderElection(clientConfig *rest.Config, config configv1.LeaderElection, component, identity string) (leaderelection.LeaderElectionConfig, error)
ToConfigMapLeaderElection returns a leader election config that you just need to fill in the Callback for. Don't forget the callbacks!
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.