config

package
v0.24.9-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceLockEndpoints = "endpoints"

ResourceLockEndpoints is the resourceLock value for 'endpoints' API

View Source
const ResourceLockLeases = "leases"

ResourceLockLeases is the resourceLock value for 'leases' API

Variables

This section is empty.

Functions

func DefaultLeaderMigrationConfiguration added in v0.22.0

func DefaultLeaderMigrationConfiguration() *internal.LeaderMigrationConfiguration

DefaultLeaderMigrationConfiguration returns the default LeaderMigrationConfiguration

that is valid for this release of Kubernetes.

func ReadLeaderMigrationConfiguration

func ReadLeaderMigrationConfiguration(configFilePath string) (*internal.LeaderMigrationConfiguration, error)

ReadLeaderMigrationConfiguration reads LeaderMigrationConfiguration from a YAML file at the given path. The parsed LeaderMigrationConfiguration may be invalid. It returns an error if the file did not exist.

func ValidateLeaderMigrationConfiguration

func ValidateLeaderMigrationConfiguration(config *internal.LeaderMigrationConfiguration) (allErrs field.ErrorList)

ValidateLeaderMigrationConfiguration validates the LeaderMigrationConfiguration against common errors. It checks required names and whether resourceLock is either 'leases' or 'endpoints'. It will return nil if it does not find anything wrong.

Types

This section is empty.

Jump to

Keyboard shortcuts

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