kubeadm

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(nodeName string, expiryTimeToRotate time.Duration) cert.Certificate

New returns the kubeadm instance

Types

type Kubeadm

type Kubeadm struct {
	// contains filtered or unexported fields
}

func (*Kubeadm) CheckExpiration

func (k *Kubeadm) CheckExpiration() ([]string, error)

CheckExpiration checks control plane node certificate returns the certificates which are going to expires

func (*Kubeadm) Rotate

func (k *Kubeadm) Rotate(expiryCertificates []string) error

Rotate executes the steps to rotates the certificate including backing up certificate, rotates certificate, and restart kubelet

Jump to

Keyboard shortcuts

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