Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for KubeConfigPath (0.3 sec)

  1. 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)
  2. cmd/kubeadm/app/cmd/init_test.go

    		if r.Method != http.MethodHead {
    			w.WriteHeader(http.StatusMethodNotAllowed)
    		}
    	}))
    	defer ts.Close()
    
    	kubeconfigPath := filepath.Join(t.TempDir(), "custom.conf")
    	if err := os.WriteFile(kubeconfigPath, []byte(fmt.Sprintf(testKubeconfigDataFormat, ts.URL)), 0o600); err != nil {
    		t.Fatalf("os.WriteFile returned unexpected error: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/kubeadm/app/cmd/certs.go

    type expirationFlags struct {
    	cfgPath        string
    	kubeconfigPath string
    	cfg            kubeadmapiv1.ClusterConfiguration
    }
    
    func addExpirationFlags(cmd *cobra.Command, flags *expirationFlags) {
    	options.AddConfigFlag(cmd.Flags(), &flags.cfgPath)
    	options.AddCertificateDirFlag(cmd.Flags(), &flags.cfg.CertificatesDir)
    	options.AddKubeConfigFlag(cmd.Flags(), &flags.kubeconfigPath)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kubeadm/app/cmd/options/generic.go

    	fs.StringVar(kubeConfigFile, KubeconfigPath, *kubeConfigFile, "The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.")
    	// Note that DefValue is the text shown in the terminal and not the default value assigned to the flag
    	fs.Lookup(KubeconfigPath).DefValue = constants.GetAdminKubeConfigPath()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/upgrade/node/data.go

    	Cfg() *kubeadmapi.UpgradeConfiguration
    	InitCfg() *kubeadmapi.InitConfiguration
    	IsControlPlaneNode() bool
    	Client() clientset.Interface
    	IgnorePreflightErrors() sets.Set[string]
    	PatchesDir() string
    	KubeConfigPath() string
    	OutputWriter() io.Writer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/upgrade/common_test.go

    		dryRun             bool
    		flags              applyPlanFlags
    		expectedErr        string
    		expectedErrNonRoot string
    	}{
    		{
    			name: "Fail pre-flight check",
    			flags: applyPlanFlags{
    				kubeConfigPath: fullPath,
    			},
    			expectedErr:        "ERROR CoreDNSUnsupportedPlugins",
    			expectedErrNonRoot: "user is not running as", // user is not running as (root || administrator)
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top