kubeconfig

package
v0.0.0-...-b3ee267 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeptioAuthenticatorAWS = "heptio-authenticator-aws"
	AWSIAMAuthenticator    = "aws-iam-authenticator"
)

Variables

Functions

func AppendAuthenticator

func AppendAuthenticator(c *clientcmdapi.Config, spec *api.ClusterConfig, command string)

func AutoPath

func AutoPath(name string) string

func MaybeDeleteConfig

func MaybeDeleteConfig(ctl *api.ClusterConfig)

func New

func New(spec *api.ClusterConfig, username, certificateAuthorityPath string) (*clientcmdapi.Config, string, string)

New creates Kubernetes client configuration for a given username if certificateAuthorityPath is no empty, it is used instead of embedded certificate-authority-data

func Write

func Write(path string, newConfig *clientcmdapi.Config, setContext bool) (string, error)

Write will write Kubernetes client configuration to a file. If path isn't specified then the path will be determined by client-go. If file pointed to by path doesn't exist it will be created. If the file already exists then the configuration will be merged with the existing file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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