Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 52 for kubeConfigPath (0.34 sec)

  1. cmd/kubeadm/app/cmd/phases/reset/removeetcdmember.go

    		Name:  "remove-etcd-member",
    		Short: "Remove a local etcd member.",
    		Long:  "Remove a local etcd member for a control plane node.",
    		Run:   runRemoveETCDMemberPhase,
    		InheritFlags: []string{
    			options.KubeconfigPath,
    			options.DryRun,
    		},
    	}
    }
    
    func runRemoveETCDMemberPhase(c workflow.RunData) error {
    	r, ok := c.(resetData)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/apis/kubeadm/v1beta3/zz_generated.conversion.go

    }
    
    func autoConvert_v1beta3_FileDiscovery_To_kubeadm_FileDiscovery(in *FileDiscovery, out *kubeadm.FileDiscovery, s conversion.Scope) error {
    	out.KubeConfigPath = in.KubeConfigPath
    	return nil
    }
    
    // Convert_v1beta3_FileDiscovery_To_kubeadm_FileDiscovery is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/apis/kubeadm/v1beta3/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: Sat May 11 10:21:20 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go

    func TestMissingKubeConfigFile(t *testing.T) {
    	kubeConfigPath := "/some/missing/path"
    	_, err := LoadKubeconfig(kubeConfigPath, nil)
    
    	if err == nil {
    		t.Errorf("creating the webhook should had failed")
    	} else if strings.Index(err.Error(), fmt.Sprintf("stat %s", kubeConfigPath)) != 0 {
    		t.Errorf("unexpected error: %v", err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 25.8K 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. tools/bug-report/pkg/bugreport/flags.go

    	gConfig                                            = &config2.BugReportConfig{}
    )
    
    func addFlags(cmd *cobra.Command, args *config2.BugReportConfig) {
    	// k8s client config
    	cmd.PersistentFlags().StringVarP(&args.KubeConfigPath, "kubeconfig", "c", "",
    		"Path to kube config.")
    	cmd.PersistentFlags().StringVar(&args.Context, "context", "",
    		"Name of the kubeconfig Context to use.")
    
    	// input config
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Nov 04 12:07:50 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    func ValidateDiscoveryFile(f *kubeadm.FileDiscovery, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	allErrs = append(allErrs, ValidateDiscoveryKubeConfigPath(f.KubeConfigPath, fldPath.Child("kubeConfigPath"))...)
    
    	return allErrs
    }
    
    // ValidateDiscoveryTokenAPIServer validates discovery token for API server
    func ValidateDiscoveryTokenAPIServer(apiServer string, fldPath *field.Path) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. 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)
  9. cmd/kubeadm/app/cmd/join_test.go

    			},
    			validate: func(t *testing.T, data *joinData) {
    				// validate that file discovery settings are set into join data
    				if data.cfg.Discovery.File == nil || data.cfg.Discovery.File.KubeConfigPath != "https://foo" {
    					t.Error("Invalid data.cfg.Discovery.File")
    				}
    			},
    		},
    		{
    			name: "pass if bootstrap discovery is set",
    			args: []string{"1.2.3.4:6443", "5.6.7.8:6443"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. 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)
Back to top