k8s

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KotsadmIDConfigMapName = "kotsadm-id"
)

Variables

This section is empty.

Functions

func Clientset

func Clientset() (kubernetes.Interface, error)

Clientset will return a kubernetes client

func CreateKotsadmIDConfigMap added in v1.35.0

func CreateKotsadmIDConfigMap(kotsadmID string) error

func FindKotsadmImage

func FindKotsadmImage(namespace string) (string, error)

func GenerateBootstrapToken

func GenerateBootstrapToken(client kubernetes.Interface, ttl time.Duration) (string, error)

GenerateBootstrapToken will generate a node join token for kubeadm. ttl defines the time to live for this token.

func GetK8sVersion added in v1.35.0

func GetK8sVersion() (string, error)

func GetKotsadmIDConfigMap added in v1.35.0

func GetKotsadmIDConfigMap() (*corev1.ConfigMap, error)

func IsKotsadmClusterScoped

func IsKotsadmClusterScoped(ctx context.Context, clientset kubernetes.Interface, namespace string) bool

IsKotsadmClusterScoped will check if kotsadm has cluster scope access or not

func IsKotsadmIDConfigMapPresent added in v1.35.0

func IsKotsadmIDConfigMapPresent() (bool, error)

func UpdateKotsadmIDConfigMap added in v1.35.0

func UpdateKotsadmIDConfigMap(kotsadmID string) error

func UploadCertsWithNewKey

func UploadCertsWithNewKey() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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