Documentation ¶
Index ¶
- Constants
- Variables
- func AppendAuthenticator(config *clientcmdapi.Config, spec *api.ClusterConfig, ...)
- func AuthenticatorCommands() []string
- func AutoPath(name string) string
- func LookupAuthenticator() (string, bool)
- func MaybeDeleteConfig(meta *api.ClusterMeta)
- func New(spec *api.ClusterConfig, username, certificateAuthorityPath string) (*clientcmdapi.Config, string, string)
- func NewForKubectl(spec *api.ClusterConfig, username, roleARN, profile string) *clientcmdapi.Config
- func Write(path string, newConfig clientcmdapi.Config, setContext bool) (string, error)
Constants ¶
View Source
const ( // AWSIAMAuthenticator defines the name of the AWS IAM authenticator AWSIAMAuthenticator = "aws-iam-authenticator" // HeptioAuthenticatorAWS defines the old name of AWS IAM authenticator HeptioAuthenticatorAWS = "heptio-authenticator-aws" // AWSEKSAuthenticator defines the recently added `aws eks get-token` command AWSEKSAuthenticator = "aws" )
Variables ¶
View Source
var DefaultPath = clientcmd.RecommendedHomeFile
DefaultPath defines the default path
Functions ¶
func AppendAuthenticator ¶
func AppendAuthenticator(config *clientcmdapi.Config, spec *api.ClusterConfig, authenticatorCMD, roleARN, profile string)
AppendAuthenticator appends the AWS IAM authenticator, and if profile is non-empty string it sets AWS_PROFILE environment variable also
func AuthenticatorCommands ¶
func AuthenticatorCommands() []string
AuthenticatorCommands returns all of authenticator commands
func LookupAuthenticator ¶
LookupAuthenticator looks up an available authenticator
func MaybeDeleteConfig ¶
func MaybeDeleteConfig(meta *api.ClusterMeta)
MaybeDeleteConfig will delete the auto-generated kubeconfig, if it exists
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 not empty, it is used instead of embedded certificate-authority-data
func NewForKubectl ¶
func NewForKubectl(spec *api.ClusterConfig, username, roleARN, profile string) *clientcmdapi.Config
NewForKubectl creates configuration for kubectl using a suitable authenticator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.