- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for KubeConfigPath (0.31 sec)
-
cmd/kubeadm/app/cmd/phases/init/kubeletfinalize.go
kubeconfig, err := clientcmd.LoadFromFile(kubeconfigPath) if err != nil { return errors.Wrapf(err, "could not load %q", kubeconfigPath) } // Perform basic validation. The errors here can only happen if the kubelet.conf was corrupted. if len(kubeconfig.CurrentContext) == 0 { return errors.Errorf("the file %q does not have current context set", kubeconfigPath) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:54:51 UTC 2024 - 6.8K bytes - Viewed (0) -
pkg/test/framework/components/cluster/kube/factory.go
return nil, err } kubeconfigPath := cfg.Meta.String(kubeconfigMetaKey) kubeconfigPath, err = file.NormalizePath(kubeconfigPath) if err != nil { return nil, err } var client istioKube.CLIClient if len(cfg.HTTPProxy) > 0 { proxyURL, err := url.Parse(cfg.HTTPProxy) if err != nil { return nil, err } client, err = buildClientWithProxy(kubeconfigPath, proxyURL) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 2.7K bytes - Viewed (0) -
pkg/kubelet/certificate/bootstrap/bootstrap.go
// should stop immediately. func isClientConfigStillValid(kubeconfigPath string) (bool, error) { _, err := os.Stat(kubeconfigPath) if os.IsNotExist(err) { return false, nil } if err != nil { return false, fmt.Errorf("error reading existing bootstrap kubeconfig %s: %v", kubeconfigPath, err) } bootstrapClientConfig, err := loadRESTClientConfig(kubeconfigPath) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 27 08:04:25 UTC 2022 - 14.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/init/addons_test.go
want: []string{options.CfgPath, options.KubeconfigPath, options.KubernetesVersion, options.ImageRepository, options.DryRun, options.APIServerAdvertiseAddress, options.ControlPlaneEndpoint, options.APIServerBindPort, options.NetworkingPodSubnet, }, }, { name: "coredns", want: []string{options.CfgPath, options.KubeconfigPath, options.KubernetesVersion,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 07:35:17 UTC 2023 - 2.2K bytes - Viewed (0) -
cmd/kubemark/app/hollow_node_test.go
})) defer server.Close() kubeconfigPath := filepath.Join(tmpDir, "config.kubeconfig") if err := os.WriteFile(kubeconfigPath, []byte(fmt.Sprintf(fakeKubeconfig, server.URL)), os.FileMode(0600)); err != nil { t.Fatal(err) } for morph := range knownMorphs { morph := morph t.Run(morph, func(t *testing.T) { s := &hollowNodeConfig{ KubeconfigPath: kubeconfigPath, Morph: morph, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 10:06:15 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/node.go
if _, err := os.Stat(filepath); os.IsNotExist(err) { isControlPlaneNode = false } if len(nodeOptions.kubeConfigPath) == 0 { // Update the kubeconfig path depending on whether this is a control plane node or not. nodeOptions.kubeConfigPath = constants.GetKubeletKubeConfigPath() if isControlPlaneNode { nodeOptions.kubeConfigPath = constants.GetAdminKubeConfigPath() } } externalCfg := &v1beta4.UpgradeConfiguration{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 08:34:39 UTC 2024 - 10K bytes - Viewed (0) -
cmd/kubeadm/app/discovery/discovery.go
timeout := cfg.Timeouts.Discovery.Duration switch { case cfg.Discovery.File != nil: kubeConfigPath := cfg.Discovery.File.KubeConfigPath if isHTTPSURL(kubeConfigPath) { return https.RetrieveValidatedConfigInfo(kubeConfigPath, timeout) } return file.RetrieveValidatedConfigInfo(kubeConfigPath, timeout) case cfg.Discovery.BootstrapToken != nil: return token.RetrieveValidatedConfigInfo(&cfg.Discovery, timeout)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/upgrade.go
kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants" ) // applyPlanFlags holds the values for the common flags in `kubeadm upgrade apply` and `kubeadm upgrade plan` type applyPlanFlags struct { kubeConfigPath string cfgPath string featureGatesString string allowExperimentalUpgrades bool allowRCUpgrades bool printConfig bool ignorePreflightErrors []string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 26 01:18:29 UTC 2022 - 2.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/diff_test.go
if err != nil { t.Fatal(err) } defer os.Remove(testUpgradeDiffManifest) kubeConfigPath, err := createTestRunDiffFile([]byte(testConfigToken)) if err != nil { t.Fatal(err) } //nolint:errcheck defer os.Remove(kubeConfigPath) flags := &diffFlags{ cfgPath: "", out: io.Discard, } testCases := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 04:08:57 UTC 2024 - 5.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/diff.go
if err != nil { return err } client, err := kubeconfigutil.ClientSetFromFile(flags.kubeConfigPath) if err != nil { return errors.Wrapf(err, "couldn't create a Kubernetes client from file %q", flags.kubeConfigPath) } initCfg, err := fetchInitConfigurationFromCluster(client, &output.TextPrinter{}, "upgrade/diff", false, true) if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 11:04:08 UTC 2024 - 7.1K bytes - Viewed (0)