Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "certificate"
ControllerName is the name of the controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
Cancel context.CancelFunc
Clock clock.Clock
FS afero.Afero
Config *rest.Config
NodeAgentConfigDir string
MachineName string
// contains filtered or unexported fields
}
Reconciler checks when the certificate of gardener-node-agent expires and requests a new one in this case. When the certificate is renewed it saves the resulting kubeconfig on the disk, cancels its context to initiate a restart of gardener-node-agent.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager) error
AddToManager adds the lease controller with the default Options to the manager.
Click to show internal directories.
Click to hide internal directories.