certificate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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
	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.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, _ reconcile.Request) (reconcile.Result, error)

Reconcile requests a new certificate when the actual one is expiring. Then, it calls the cancel func.

Jump to

Keyboard shortcuts

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