controller

package
v0.0.0-...-0d8c3dd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigMapController

func NewConfigMapController(
	controllerContext context.Context,
	controllerCancel context.CancelFunc,
	kubeClientset kubernetes.Interface,
	configMapInformer coreinformers.ConfigMapInformer,
	configMapName, configMapNamespace string) (*controller.CloudNetworkConfigController, error)

NewConfigMapController returns a new ConfigMap controller

Types

type ConfigMapController

type ConfigMapController struct {
	controller.CloudNetworkConfigController
	// contains filtered or unexported fields
}

ConfigMapController is the controller implementation for ConfigMap resources This controller is used to watch for configMap rotations by the cloud- credentials-operator for what concerns the cloud API configMap

func (*ConfigMapController) SyncHandler

func (s *ConfigMapController) SyncHandler(key string) error

syncHandler does *not* compare the actual state with the desired, it's triggered on a configMap.data change or configMap deletion and cancels the global context forcing us to re-initialize the cloud credentials on restart.

Jump to

Keyboard shortcuts

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