- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkExistingKubeConfigFile (0.41 sec)
-
cni/pkg/install/kubeconfig.go
} return nil } // checkExistingKubeConfigFile returns an error if no kubeconfig exists at the configured path, // or if a kubeconfig exists there, but differs from the current config. // In any case, an error indicates the file must be (re)written, and no error means no action need be taken func checkExistingKubeConfigFile(cfg *config.InstallConfig, expectedKC kubeconfig) error {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Aug 11 01:19:03 GMT 2023 - 4.9K bytes - Viewed (0) -
cni/pkg/install/kubeconfig_test.go
K8sServiceHost: k8sServiceHost, K8sServicePort: k8sServicePort, } expectedKC, err := createKubeConfig(cfg) if err != nil { t.Fatalf("expected no error: %+v", err) } err = checkExistingKubeConfigFile(cfg, expectedKC) if err == nil { t.Fatalf("expected error, no kubeconfig present") } } func TestCheckMismatchedExistingKubeConfig(t *testing.T) { tmp := t.TempDir()
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Feb 08 03:52:24 GMT 2024 - 5.1K bytes - Viewed (0)