Documentation ¶
Index ¶
- Constants
- func CreateAdminAndKubeletKubeConfig(masterEndpoint, pkiDir, outDir string) error
- func MakeClientConfigWithCerts(serverURL, clusterName, userName string, caCert []byte, clientKey []byte, ...) *clientcmdapi.Config
- func MakeClientConfigWithToken(serverURL, clusterName, userName string, caCert []byte, token string) *clientcmdapi.Config
- func WriteKubeconfigToDisk(filename string, kubeconfig *clientcmdapi.Config) error
Constants ¶
View Source
const ( KubernetesDirPermissions = 0700 KubeConfigFilePermissions = 0600 AdminKubeConfigFileName = "admin.conf" AdminKubeConfigClientName = "kubernetes-admin" KubeletKubeConfigFileName = "kubelet.conf" KubeletKubeConfigClientName = "kubelet" )
Variables ¶
This section is empty.
Functions ¶
func CreateAdminAndKubeletKubeConfig ¶
CreateAdminAndKubeletKubeConfig is called from the main init and does the work for the default phase behaviour
func MakeClientConfigWithCerts ¶
func MakeClientConfigWithCerts(serverURL, clusterName, userName string, caCert []byte, clientKey []byte, clientCert []byte) *clientcmdapi.Config
Creates a clientcmdapi.Config object with access to the API server with client certificates
func MakeClientConfigWithToken ¶
func MakeClientConfigWithToken(serverURL, clusterName, userName string, caCert []byte, token string) *clientcmdapi.Config
Creates a clientcmdapi.Config object with access to the API server with a token
func WriteKubeconfigToDisk ¶
func WriteKubeconfigToDisk(filename string, kubeconfig *clientcmdapi.Config) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.