{"modulePath":"github.com/cloudzero/cloudzero-agent","version":"v1.1.0-rc-1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package k8s\n\nPackage k8s contains helpers for working with the Kubernetes Client.\n\n## Functions\n\n```go\nfunc BuildKubeClient(kubeconfigPath string) (kubernetes.Interface, error)\n```\nBuildKubeClient builds a Kubernetes clientset from the kubeconfig file\n\n```go\nfunc GetKubeStateMetricsURL(ctx context.Context, clientset kubernetes.Interface) (string, error)\n```\nGetKubeStateMetricsURL fetches the URL for the Kube State Metrics service across all namespaces\n\n```go\nfunc UpdateConfigMap(ctx context.Context, clientset kubernetes.Interface, namespace, name string, data map[string]string) error\n```\nUpdateConfigMap updates the specified ConfigMap\n\n","path":"github.com/cloudzero/cloudzero-agent/pkg/k8s","name":"k8s","synopsis":"Package k8s contains helpers for working with the Kubernetes Client.","isRedistributable":true}
