package kubectl
import "gvisor.dev/gvisor/tools/gvisor_k8s_tool/provider/kubectl"
Package kubectl contains functions to interact with Kubernetes clusters controlled using kubectl configurations.
Index ¶
Functions ¶
func NewCluster ¶
NewCluster creates a new cluster client for the given context name and using the kubectl config defined in the KUBECONFIG environment variable. If the context name is empty, the default ("current") context is used.
Source Files ¶
kubectl.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 4 hours ago –
Tools for package owners.