Documentation ¶
Index ¶
- Constants
- Variables
- func ObserveStorageURLs(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveStorageURLsToArguments(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveStorageURLsToArgumentsWithAlwaysLocal(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- func ObserveStorageURLsWithAlwaysLocal(genericListers configobserver.Listers, recorder events.Recorder, ...) (map[string]interface{}, []error)
- type ConfigMapLister
- type EndpointsLister
Constants ¶
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 ¶
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
}