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.
Click to show internal directories.
Click to hide internal directories.