- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for createKubeConfig (0.15 sec)
-
cni/pkg/install/kubeconfig_test.go
K8sServiceHost: c.k8sServiceHost, K8sServicePort: c.k8sServicePort, K8sServiceAccountPath: tmp, SkipTLSVerify: c.skipTLSVerify, } result, err := createKubeConfig(cfg) if err != nil { if !c.expectedFailure { t.Fatalf("did not expect failure: %v", err) } // Successful test case expecting failure return } else if c.expectedFailure {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Aug 14 19:36:19 UTC 2024 - 3.8K bytes - Viewed (0) -
cni/pkg/install/kubeconfig.go
"istio.io/istio/pkg/file" ) type kubeconfig struct { // The full kubeconfig Full string // Kubeconfig with confidential data redacted. Redacted string } func createKubeConfig(cfg *config.InstallConfig) (kubeconfig, error) { if len(cfg.K8sServiceHost) == 0 { return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_HOST not set. Is this not running within a pod?") }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 4K bytes - Viewed (0)