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