Module config

Source
Available on crate feature config only.
Expand description

Kubernetes configuration objects.

Reads locally from $KUBECONFIG or ~/.kube/config, and in-cluster from the pod environment.

§Usage

The Config has several constructors plus logic to infer environment.

Unless you have issues, prefer using Config::infer, and pass it to a Client.

Structs§

AuthInfo
AuthInfo stores information to tell cluster who you are.
AuthProviderConfig
AuthProviderConfig stores auth for specified cloud provider.
Cluster
Cluster stores information to connect Kubernetes cluster.
Config
Configuration object for accessing a Kuernetes cluster
Context
Context stores tuple of cluster and user information.
ExecAuthCluster
Connection information for auth plugins that have provideClusterInfo enabled.
ExecConfig
ExecConfig stores credential-plugin configuration.
InferConfigError
Failed to infer config
KubeConfigOptions
KubeConfigOptions stores options used when loading kubeconfig file.
Kubeconfig
Kubeconfig represents information on how to connect to a remote Kubernetes cluster
NamedAuthInfo
NamedAuthInfo associates name with authentication.
NamedCluster
NamedCluster associates name with cluster.
NamedContext
NamedContext associates name with context.
NamedExtension
NamedExtention associates name with extension.
Preferences
Preferences stores extensions for cli.

Enums§

ExecInteractiveMode
ExecInteractiveMode define the interactity of the child process
InClusterError
Errors from loading in-cluster config
KubeconfigError
Possible errors when loading kubeconfig
LoadDataError
Errors from loading data from a base64 string or a file