Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for cfgData (0.14 sec)

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

    		t.Run(rt.name, func(t2 *testing.T) {
    			cfgPath := filepath.Join(tmpdir, rt.name)
    			err := os.WriteFile(cfgPath, rt.fileContents, 0644)
    			if err != nil {
    				t.Errorf("Couldn't create file: %v", err)
    				return
    			}
    
    			opts := LoadOrDefaultConfigurationOptions{
    				SkipCRIDetect: true,
    			}
    
    			obj, err := LoadInitConfigurationFromFile(cfgPath, opts)
    			if rt.expectErr {
    				if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. pkg/test/framework/config/map.go

    			return nil
    		}
    		out = append(out, meta)
    	}
    	return out
    }
    
    func toMap(orig any) (Map, bool) {
    	// keys are strings, easily cast
    	if cfgMeta, ok := orig.(Map); ok {
    		return cfgMeta, true
    	}
    	// keys are interface{}, manually change to string keys
    	mapInterface, ok := orig.(map[any]any)
    	if !ok {
    		// not a map at all
    		return nil, false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/upgrade/diff.go

    	controllerManagerManifestPath string
    	schedulerManifestPath         string
    	newK8sVersionStr              string
    	contextLines                  int
    	kubeConfigPath                string
    	cfgPath                       string
    	out                           io.Writer
    }
    
    var (
    	defaultAPIServerManifestPath         = constants.GetStaticPodFilepath(constants.KubeAPIServer, constants.GetStaticPodDirectory())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kubeadm/app/cmd/phases/init/uploadcerts.go

    		Long:  fmt.Sprintf("Upload control plane certificates to the %s Secret", kubeadmconstants.KubeadmCertsSecret),
    		Run:   runUploadCerts,
    		InheritFlags: []string{
    			options.CfgPath,
    			options.KubeconfigPath,
    			options.UploadCerts,
    			options.CertificateKey,
    			options.SkipCertificateKeyPrint,
    			options.DryRun,
    		},
    	}
    }
    
    func runUploadCerts(c workflow.RunData) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 04:00:49 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/init/markcontrolplane.go

    	return workflow.Phase{
    		Name:    "mark-control-plane",
    		Short:   "Mark a node as a control-plane",
    		Example: markControlPlaneExample,
    		InheritFlags: []string{
    			options.NodeName,
    			options.CfgPath,
    			options.DryRun,
    		},
    		Run: runMarkControlPlane,
    	}
    }
    
    // runMarkControlPlane executes mark-control-plane checks logic.
    func runMarkControlPlane(c workflow.RunData) error {
    	data, ok := c.(InitData)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top