Documentation ¶
Index ¶
- Constants
- func Clientset() (kubernetes.Interface, error)
- func CreateKotsadmIDConfigMap(kotsadmID string) error
- func FindKotsadmImage(namespace string) (string, error)
- func GenerateBootstrapToken(client kubernetes.Interface, ttl time.Duration) (string, error)
- func GetK8sVersion() (string, error)
- func GetKotsadmIDConfigMap() (*corev1.ConfigMap, error)
- func IsKotsadmClusterScoped(ctx context.Context, clientset kubernetes.Interface, namespace string) bool
- func IsKotsadmIDConfigMapPresent() (bool, error)
- func UpdateKotsadmIDConfigMap(kotsadmID string) error
- func UploadCertsWithNewKey() (string, error)
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 FindKotsadmImage ¶
func GenerateBootstrapToken ¶
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 GetKotsadmIDConfigMap ¶ added in v1.35.0
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 UpdateKotsadmIDConfigMap ¶ added in v1.35.0
func UploadCertsWithNewKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.