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§
- Auth
Info - AuthInfo stores information to tell cluster who you are.
- Auth
Provider Config - 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.
- Exec
Auth Cluster - Connection information for auth plugins that have
provideClusterInfo
enabled. - Exec
Config - ExecConfig stores credential-plugin configuration.
- Infer
Config Error - Failed to infer config
- Kube
Config Options - KubeConfigOptions stores options used when loading kubeconfig file.
- Kubeconfig
Kubeconfig
represents information on how to connect to a remote Kubernetes cluster- Named
Auth Info - NamedAuthInfo associates name with authentication.
- Named
Cluster - NamedCluster associates name with cluster.
- Named
Context - NamedContext associates name with context.
- Named
Extension - NamedExtention associates name with extension.
- Preferences
- Preferences stores extensions for cli.
Enums§
- Exec
Interactive Mode - ExecInteractiveMode define the interactity of the child process
- InCluster
Error - Errors from loading in-cluster config
- Kubeconfig
Error - Possible errors when loading kubeconfig
- Load
Data Error - Errors from loading data from a base64 string or a file