kubeconfig

package
v1.6.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func CreateAdminAndKubeletKubeConfig(masterEndpoint, pkiDir, outDir string) error

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.

Jump to

Keyboard shortcuts

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