etcd

package
v0.0.0-...-5152f1c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtcdEndpointNamespace = "openshift-etcd"

	// EtcdEndpointName points to the old host-etcd-2 endpoint applicable for clusters prior to 4.5
	EtcdEndpointName = "host-etcd-2"
)

Variables

View Source
var (
	OldStorageConfigURLsPath = []string{"storageConfig", "urls"}
	StorageConfigURLsPath    = []string{"apiServerArguments", StorageConfigURLsKey}

	StorageConfigURLsKey = "etcd-servers"
)

Functions

func ObserveStorageURLs

func ObserveStorageURLs(genericListers configobserver.Listers, recorder events.Recorder, currentConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveStorageURLs observes the storage config URLs and sets storageConfig field in the observerConfig under OldStorageConfigURLsPath. If there is a problem observing the current storage config URLs, then the previously observed storage config URLs will be re-used.

func ObserveStorageURLsToArguments

func ObserveStorageURLsToArguments(genericListers configobserver.Listers, recorder events.Recorder, currentConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveStorageURLs observes the storage config URLs and sets storageConfig field in the observerConfig under StorageConfigURLsPath. If there is a problem observing the current storage config URLs, then the previously observed storage config URLs will be re-used.

func ObserveStorageURLsToArgumentsWithAlwaysLocal

func ObserveStorageURLsToArgumentsWithAlwaysLocal(genericListers configobserver.Listers, recorder events.Recorder, currentConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveStorageURLs observes the storage config URLs and sets storageConfig field in the observerConfig under StorageConfigURLsPath. If there is a problem observing the current storage config URLs, then the previously observed storage config URLs will be re-used. This function always adds a localhost endpoint to the list of etcd servers.

func ObserveStorageURLsWithAlwaysLocal

func ObserveStorageURLsWithAlwaysLocal(genericListers configobserver.Listers, recorder events.Recorder, currentConfig map[string]interface{}) (map[string]interface{}, []error)

ObserveStorageURLs observes the storage config URLs and sets storageConfig field in the observerConfig under OldStorageConfigURLsPath. If there is a problem observing the current storage config URLs, then the previously observed storage config URLs will be re-used. This function always adds a localhost endpoint to the list of etcd servers.

Types

type ConfigMapLister

type ConfigMapLister interface {
	ConfigMapLister() corelistersv1.ConfigMapLister
}

type EndpointsLister

type EndpointsLister interface {
	EndpointsLister() corelistersv1.EndpointsLister
}

Jump to

Keyboard shortcuts

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