{"modulePath":"github.com/cloudzero/cloudzero-agent","version":"v1.2.7","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package kind\n\nPackage kind provides utilities for managing Kind clusters in tests.\n\n## Functions\n\n```go\nfunc CleanupCluster(t *testing.T, clusterName string)\n```\nCleanupCluster deletes the Kind cluster\n\n```go\nfunc CreateKubernetesClient(kubeconfig string) (kubernetes.Interface, error)\n```\nCreateKubernetesClient creates a Kubernetes client from kubeconfig file\n\n```go\nfunc GetCurrentFile() string\n```\nGetCurrentFile returns the current file path (useful for finding test configuration files)\n\n```go\nfunc SetupCluster(t *testing.T, clusterName, tempDir, kindConfigPath string) string\n```\nSetupCluster creates a Kind cluster using the specified configuration file\n\n```go\nfunc SetupClusterWithEmbeddedConfig(t *testing.T, clusterName, tempDir string) string\n```\nSetupClusterWithEmbeddedConfig creates a Kind cluster using the embedded configuration template\n\n## Types\n\n```go\ntype KindConfig struct {\n\tClusterName string\n\tHostPath    string\n}\n```\nKindConfig holds the configuration parameters for the Kind cluster\n\n","path":"github.com/cloudzero/cloudzero-agent/tests/kind","name":"kind","synopsis":"Package kind provides utilities for managing Kind clusters in tests.","isRedistributable":true}
