...

Package discovery

import "k8s.io/kubernetes/cmd/kubeadm/app/discovery"
Overview
Index
Subdirectories

Overview ▾

Constants

TokenUser defines token user

const TokenUser = "tls-bootstrap-token-user"

func DiscoverValidatedKubeConfig

func DiscoverValidatedKubeConfig(cfg *kubeadmapi.JoinConfiguration) (*clientcmdapi.Config, error)

DiscoverValidatedKubeConfig returns a validated Config object that specifies where the cluster is and the CA cert to trust

func For

func For(cfg *kubeadmapi.JoinConfiguration) (*clientcmdapi.Config, error)

For returns a kubeconfig object that can be used for doing the TLS Bootstrap with the right credentials Also, before returning anything, it makes sure it can trust the API Server

Subdirectories

Name Synopsis
..
file
https
token