Documentation ¶
Index ¶
- Constants
- Variables
- func AppendAuthenticator(c *clientcmdapi.Config, spec *api.ClusterConfig, command string)
- func AutoPath(name string) string
- func MaybeDeleteConfig(ctl *api.ClusterConfig)
- func New(spec *api.ClusterConfig, username, certificateAuthorityPath string) (*clientcmdapi.Config, string, string)
- func Write(path string, newConfig *clientcmdapi.Config, setContext bool) (string, error)
Constants ¶
View Source
const ( HeptioAuthenticatorAWS = "heptio-authenticator-aws" AWSIAMAuthenticator = "aws-iam-authenticator" )
Variables ¶
View Source
var DefaultPath = clientcmd.RecommendedHomeFile
Functions ¶
func AppendAuthenticator ¶
func AppendAuthenticator(c *clientcmdapi.Config, spec *api.ClusterConfig, command 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.