controller

package
v0.0.0-...-5497e08 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecretController

func NewSecretController(
	controllerContext context.Context,
	controllerCancel context.CancelFunc,
	kubeClientset kubernetes.Interface,
	secretInformer coreinformers.SecretInformer,
	secretName, secretNamespace string) (*controller.CloudNetworkConfigController, error)

NewSecretController returns a new Secret controller

Types

type SecretController

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

SecretController is the controller implementation for Secret resources This controller is used to watch for secret rotations by the cloud- credentials-operator for what concerns the cloud API secret

func (*SecretController) SyncHandler

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

syncHandler does *not* compare the actual state with the desired, it's triggered on a secret.data change or secret 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