leaderelection

package
v0.0.0-...-73e1fb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL