Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for cfgData (0.25 sec)

  1. cmd/kubeadm/app/util/config/upgradeconfiguration.go

    func LoadUpgradeConfigurationFromFile(cfgPath string, _ LoadOrDefaultConfigurationOptions) (*kubeadmapi.UpgradeConfiguration, error) {
    	var err error
    	var upgradeCfg *kubeadmapi.UpgradeConfiguration
    
    	// Otherwise, we have a config file. Let's load it.
    	configBytes, err := os.ReadFile(cfgPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to load config from file %q", cfgPath)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/config/joinconfiguration_test.go

    		t.Run(rt.name, func(t2 *testing.T) {
    			cfgPath := filepath.Join(tmpdir, rt.name)
    			err := os.WriteFile(cfgPath, []byte(rt.fileContents), 0644)
    			if err != nil {
    				t.Errorf("Couldn't create file: %v", err)
    				return
    			}
    
    			opts := LoadOrDefaultConfigurationOptions{
    				SkipCRIDetect: true,
    			}
    
    			obj, err := LoadJoinConfigurationFromFile(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
    - 2.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/upgrade.go

    )
    
    // applyPlanFlags holds the values for the common flags in `kubeadm upgrade apply` and `kubeadm upgrade plan`
    type applyPlanFlags struct {
    	kubeConfigPath            string
    	cfgPath                   string
    	featureGatesString        string
    	allowExperimentalUpgrades bool
    	allowRCUpgrades           bool
    	printConfig               bool
    	ignorePreflightErrors     []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:18:29 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/config/resetconfiguration_test.go

    		t.Run(rt.name, func(t2 *testing.T) {
    			cfgPath := filepath.Join(tmpdir, rt.name)
    			err := os.WriteFile(cfgPath, []byte(rt.fileContents), 0644)
    			if err != nil {
    				t.Errorf("Couldn't create file: %v", err)
    				return
    			}
    
    			opts := LoadOrDefaultConfigurationOptions{
    				AllowExperimental: true,
    				SkipCRIDetect:     true,
    			}
    
    			obj, err := LoadResetConfigurationFromFile(cfgPath, opts)
    			if rt.expectErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 06 13:21:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/config/initconfiguration.go

    func LoadInitConfigurationFromFile(cfgPath string, opts LoadOrDefaultConfigurationOptions) (*kubeadmapi.InitConfiguration, error) {
    	klog.V(1).Infof("loading configuration from %q", cfgPath)
    
    	b, err := os.ReadFile(cfgPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to read config from %q ", cfgPath)
    	}
    
    	return BytesToInitConfiguration(b, opts.SkipCRIDetect)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 12:41:16 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. cmd/kubeadm/app/cmd/init_test.go

    		{
    			name: "pre-flights errors from InitConfiguration only",
    			flags: map[string]string{
    				options.CfgPath: configFilePath,
    			},
    			validate: expectedInitIgnorePreflightErrors("c", "d"),
    		},
    		{
    			name: "pre-flights errors from both CLI args and InitConfiguration",
    			flags: map[string]string{
    				options.CfgPath:               configFilePath,
    				options.IgnorePreflightErrors: "a,b",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/certs.go

    	outputFlags.AddFlags(cmd)
    	return cmd
    }
    
    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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. 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)
Back to top