Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for cfgData (0.2 sec)

  1. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    	flags := &diffFlags{
    		cfgPath: "",
    		out:     io.Discard,
    	}
    
    	testCases := []struct {
    		name            string
    		args            []string
    		setManifestPath bool
    		manifestPath    string
    		cfgPath         string
    		expectedError   bool
    	}{
    		{
    			name:            "valid: run diff with empty config path on valid manifest path",
    			cfgPath:         "",
    			setManifestPath: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/kubeconfig_test.go

    		return "", err
    	}
    	buf.Write(data)
    	buf.WriteString("---\n")
    	data, err = yaml.Marshal(&clusterCfg)
    	if err != nil {
    		return "", err
    	}
    	buf.Write(data)
    
    	err = os.WriteFile(cfgPath, buf.Bytes(), 0644)
    	return cfgPath, err
    }
    
    func TestKubeConfigSubCommandsThatWritesToOut(t *testing.T) {
    
    	// Temporary folders for the test case
    	tmpdir := testutil.SetupTempDir(t)
    	defer os.RemoveAll(tmpdir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/options/generic.go

    }
    
    // AddConfigFlag adds the --config flag to the given flagset
    func AddConfigFlag(fs *pflag.FlagSet, cfgPath *string) {
    	fs.StringVar(cfgPath, CfgPath, *cfgPath, "Path to a kubeadm configuration file.")
    }
    
    // AddIgnorePreflightErrorsFlag adds the --ignore-preflight-errors flag to the given flagset
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/phases/join/controlplaneprepare.go

    			options.APIServerAdvertiseAddress,
    			options.CfgPath,
    			options.ControlPlane,
    			options.NodeName,
    			options.FileDiscovery,
    			options.TokenDiscovery,
    			options.TokenDiscoveryCAHash,
    			options.TokenDiscoverySkipCAHash,
    			options.TLSBootstrapToken,
    			options.TokenStr,
    			options.DryRun,
    		}
    	case "kubeconfig":
    		flags = []string{
    			options.CfgPath,
    			options.ControlPlane,
    			options.FileDiscovery,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:46:34 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/kubeconfig.go

    func newCmdUserKubeConfig(out io.Writer) *cobra.Command {
    
    	initCfg := &kubeadmapiv1.InitConfiguration{}
    	clusterCfg := &kubeadmapiv1.ClusterConfiguration{}
    
    	var (
    		token, clientName, cfgPath string
    		organizations              []string
    		validityPeriod             time.Duration
    	)
    
    	// Creates the UX Command
    	cmd := &cobra.Command{
    		Use:     "user",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/init/kubeletfinalize.go

    				InheritFlags:   []string{options.CfgPath, options.CertificatesDir, options.DryRun},
    				Example:        kubeletFinalizePhaseExample,
    				RunAllSiblings: true,
    			},
    			{
    				Name:         "enable-client-cert-rotation",
    				Short:        "Enable kubelet client certificate rotation",
    				InheritFlags: []string{options.CfgPath, options.CertificatesDir, options.DryRun},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 10:54:51 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/phases/init/preflight.go

    		Name:    "preflight",
    		Short:   "Run pre-flight checks",
    		Long:    "Run pre-flight checks for kubeadm init.",
    		Example: preflightExample,
    		Run:     runPreflight,
    		InheritFlags: []string{
    			options.CfgPath,
    			options.ImageRepository,
    			options.NodeCRISocket,
    			options.IgnorePreflightErrors,
    			options.DryRun,
    		},
    	}
    }
    
    // runPreflight executes preflight checks logic.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/init/addons.go

    		return err
    	}
    	return proxyaddon.EnsureProxyAddon(&cfg.ClusterConfiguration, &cfg.LocalAPIEndpoint, client, out, printManifest)
    }
    
    func getAddonPhaseFlags(name string) []string {
    	flags := []string{
    		options.CfgPath,
    		options.KubeconfigPath,
    		options.KubernetesVersion,
    		options.ImageRepository,
    		options.DryRun,
    	}
    	if name == "all" || name == "kube-proxy" {
    		flags = append(flags,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/join/preflight.go

    		Short:   "Run join pre-flight checks",
    		Long:    "Run pre-flight checks for kubeadm join.",
    		Example: preflightExample,
    		Run:     runPreflight,
    		InheritFlags: []string{
    			options.CfgPath,
    			options.IgnorePreflightErrors,
    			options.TLSBootstrapToken,
    			options.TokenStr,
    			options.ControlPlane,
    			options.APIServerAdvertiseAddress,
    			options.APIServerBindPort,
    			options.NodeCRISocket,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/join/controlplanejoin.go

    	# Joins a machine as a control plane instance
    	kubeadm join phase control-plane-join all
    `)
    
    func getControlPlaneJoinPhaseFlags(name string) []string {
    	flags := []string{
    		options.CfgPath,
    		options.ControlPlane,
    		options.NodeName,
    	}
    	if name == "etcd" || name == "all" {
    		flags = append(flags, options.Patches)
    	}
    	if name != "mark-control-plane" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:09:42 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top