- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateKubeConfig (0.15 sec)
-
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
}, NotAfter: spec.ClientCertNotAfter, EncryptionAlgorithm: spec.EncryptionAlgorithm, } } // validateKubeConfig check if the kubeconfig file exist and has the expected CA and server URL func validateKubeConfig(outDir, filename string, config *clientcmdapi.Config) error { kubeConfigFilePath := filepath.Join(outDir, filename) if _, err := os.Stat(kubeConfigFilePath); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 27K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
t.Errorf("createKubeConfigFileIfNotExists failed") } } err := validateKubeConfig(tmpdir, "test.conf", test.kubeConfig) if (err != nil) != test.expectedError { t.Fatalf(dedent.Dedent( "validateKubeConfig failed\n%s\nexpected error: %t\n\tgot: %t\nerror: %v"), name, test.expectedError, (err != nil), err, ) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 39.5K bytes - Viewed (0)