- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for KubeConfigPath (0.72 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/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/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) -
tools/bug-report/pkg/config/config.go
} return false } // BugReportConfig controls what is captured and Include in the kube-capture tool // archive. type BugReportConfig struct { // KubeConfigPath is the path to kube config file. KubeConfigPath string `json:"kubeConfigPath,omitempty"` // Context is the cluster Context in the kube config Context string `json:"context,omitempty"`
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Nov 04 12:07:50 UTC 2023 - 9.3K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/v1beta3/defaults.go
func SetDefaults_FileDiscovery(obj *FileDiscovery) { // Make sure file URL becomes path if len(obj.KubeConfigPath) != 0 { u, err := url.Parse(obj.KubeConfigPath) if err == nil && u.Scheme == "file" { obj.KubeConfigPath = u.Path } } } // SetDefaults_BootstrapTokens sets the defaults for the .BootstrapTokens field
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 6.5K bytes - Viewed (0)