Available on crate feature
config only.Expand description
Kubernetes configuration objects from ~/.kube/config, $KUBECONFIG, or the cluster 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 stores information to tell cluster who you are.
- AuthProviderConfig stores auth for specified cloud provider.
- Cluster stores information to connect Kubernetes cluster.
- Configuration object detailing things like cluster URL, default namespace, root certificates, and timeouts.
- Context stores tuple of cluster and user information.
- Cluster stores information to connect Kubernetes cluster used with auth plugins that have
provideClusterInfo`` enabled. This is a copy of [kube::config::Cluster`] with certificate_authority passed as bytes without the path. Taken from clientauthentication/types.go#Cluster - ExecConfig stores credential-plugin configuration.
- Failed to infer config
- KubeConfigOptions stores options used when loading kubeconfig file.
Kubeconfigrepresents information on how to connect to a remote Kubernetes cluster- NamedAuthInfo associates name with authentication.
- NamedCluster associates name with cluster.
- NamedContext associates name with context.
- NamedExtention associates name with extension.
- Preferences stores extensions for cli.
Enums§
- ExecInteractiveMode define the interactity of the child process
- Errors from loading in-cluster config
- Possible errors when loading kubeconfig
- Errors from loading data from a base64 string or a file