Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for kubeConfigPath (1.84 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
Back to top