- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for kubeConfigPath (2.07 sec)
-
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/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/kubemark/app/hollow_node.go
} func (c *hollowNodeConfig) createClientConfigFromFile() (*restclient.Config, error) { clientConfig, err := clientcmd.LoadFromFile(c.KubeconfigPath) if err != nil { return nil, fmt.Errorf("error while loading kubeconfig from file %v: %v", c.KubeconfigPath, err) } config, err := clientcmd.NewDefaultClientConfig(*clientConfig, &clientcmd.ConfigOverrides{}).ClientConfig() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 11K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/v1beta4/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: Thu May 16 08:34:39 UTC 2024 - 9.3K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
return errors.Errorf("%s: spec was nil", errInvalid) } kubeConfigPath := filepath.Join(kubeConfigDir, name) if _, err := os.Stat(kubeConfigPath); err == nil { return errors.Errorf("%s: kube config: %s", errExist, kubeConfigPath) } else if !os.IsNotExist(err) { return errors.Wrapf(err, "unexpected error while checking if file exists: %s", kubeConfigPath) } if pkiutil.CSROrKeyExist(kubeConfigDir, name) {
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/cmd/upgrade/common.go
if !ok { return nil, nil, nil, nil, cmdutil.TypeMismatchErr("dryRun", "bool") } } client, err := getClient(flags.kubeConfigPath, *isDryRun) if err != nil { return nil, nil, nil, nil, errors.Wrapf(err, "couldn't create a Kubernetes client from file %q", flags.kubeConfigPath) } ignorePreflightErrorsSet, err := validation.ValidateIgnorePreflightErrors(flags.ignorePreflightErrors, ignoreErrCfg) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 08:34:39 UTC 2024 - 10.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods_test.go
} }) } } func getEmbeddedCerts(tmpDir, kubeConfig string) ([]*x509.Certificate, error) { kubeconfigPath := filepath.Join(tmpDir, kubeConfig) newConfig, err := clientcmd.LoadFromFile(kubeconfigPath) if err != nil { return nil, errors.Wrapf(err, "failed to load kubeconfig file %s", kubeconfigPath) } authInfoName := newConfig.Contexts[newConfig.CurrentContext].AuthInfo
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 32K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/v1beta4/zz_generated.conversion.go
} func autoConvert_v1beta4_FileDiscovery_To_kubeadm_FileDiscovery(in *FileDiscovery, out *kubeadm.FileDiscovery, s conversion.Scope) error { out.KubeConfigPath = in.KubeConfigPath return nil } // Convert_v1beta4_FileDiscovery_To_kubeadm_FileDiscovery is an autogenerated conversion function.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 08:34:39 UTC 2024 - 61.4K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go
// FileDiscovery is used to specify a file or URL to a kubeconfig file from which to load cluster information type FileDiscovery struct { // KubeConfigPath is used to specify the actual file path or URL to the kubeconfig file from which to load cluster information KubeConfigPath string `json:"kubeConfigPath"` } // HostPathMount contains elements describing volumes that are mounted from the // host. type HostPathMount struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 03:12:52 UTC 2024 - 34.5K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/types.go
} // FileDiscovery is used to specify a file or URL to a kubeconfig file from which to load cluster information type FileDiscovery struct { // KubeConfigPath is used to specify the actual file path or URL to the kubeconfig file from which to load cluster information KubeConfigPath string } // GetControlPlaneImageRepository returns name of image repository // for control plane images (API,Controller Manager,Scheduler and Proxy)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 03:12:52 UTC 2024 - 32.6K bytes - Viewed (0)