- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for kubeConfigPath (0.3 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) -
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/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) -
cmd/kubeadm/app/cmd/phases/init/showjoincommand.go
Your Kubernetes control-plane has initialized successfully! To start using your cluster, you need to run the following as a regular user: mkdir -p $HOME/.kube sudo cp -i {{.KubeConfigPath}} $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config Alternatively, if you are the root user, you can run: export KUBECONFIG=/etc/kubernetes/admin.conf
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 26 15:35:58 UTC 2022 - 3.9K bytes - Viewed (0) -
cmd/kubeadm/app/discovery/discovery_test.go
Discovery: kubeadm.Discovery{ File: &kubeadm.FileDiscovery{ KubeConfigPath: "notnil", }, }, }, expect: false, }, { name: "file Discovery with an url", d: kubeadm.JoinConfiguration{ Discovery: kubeadm.Discovery{ File: &kubeadm.FileDiscovery{ KubeConfigPath: "https://localhost", }, }, }, expect: false, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 2K bytes - Viewed (0)