Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 265 for dryrun (0.2 sec)

  1. cmd/kubeadm/app/util/dryrun/dryrun.go

    			files = append(files, NewFileToPrint(realPath, outputPath))
    		}
    	} else {
    		fmt.Printf("[dryrun] Wrote certificates and kubeconfig files to the %q directory\n", manifestDir)
    	}
    
    	fmt.Println("[dryrun] The certificates or kubeconfig files would not be printed due to their sensitive nature")
    	fmt.Printf("[dryrun] Please examine the %q directory for details about what would be written\n", manifestDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/upgrade/apply.go

    	}
    
    	// If the current session is interactive, ask the user whether they really want to upgrade.
    	dryRun, ok := cmdutil.ValueFromFlagsOrConfig(flagSet, options.DryRun, upgradeCfg.Apply.DryRun, &flags.dryRun).(*bool)
    	if ok {
    		flags.dryRun = *dryRun
    	} else {
    		return cmdutil.TypeMismatchErr("dryRun", "bool")
    	}
    
    	if flags.sessionIsInteractive() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/common.go

    		if !ok {
    			return nil, nil, nil, nil, cmdutil.TypeMismatchErr("dryRun", "bool")
    		}
    	}
    
    	client, err := getClient(flags.kubeConfigPath, *isDryRun)
    	if err != nil {
    		return nil, nil, nil, nil, errors.Wrapf(err, "couldn't create a Kubernetes client from file %q", flags.kubeConfigPath)
    	}
    
    	ignorePreflightErrorsSet, err := validation.ValidateIgnorePreflightErrors(flags.ignorePreflightErrors, ignoreErrCfg)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/upgrade/node.go

    	if err != nil {
    		return nil, err
    	}
    
    	dryRun, ok := cmdutil.ValueFromFlagsOrConfig(cmd.Flags(), options.DryRun, upgradeCfg.Node.DryRun, &nodeOptions.dryRun).(*bool)
    	if !ok {
    		return nil, cmdutil.TypeMismatchErr("dryRun", "bool")
    	}
    	client, err := getClient(nodeOptions.kubeConfigPath, *dryRun)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/reset/cleanupnode.go

    		dirsToClean = append(dirsToClean, tempDir)
    	}
    	resetConfigDir(kubeadmconstants.KubernetesDir, dirsToClean, r.DryRun())
    
    	if r.Cfg() != nil && features.Enabled(r.Cfg().FeatureGates, features.RootlessControlPlane) {
    		if !r.DryRun() {
    			klog.V(1).Infoln("[reset] Removing users and groups created for rootless control-plane")
    			if err := users.RemoveUsersAndGroups(); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/upgrade/node/kubeletconfig.go

    		cfg := data.InitCfg()
    		dryRun := data.DryRun()
    
    		// Write the configuration for the kubelet down to disk and print the generated manifests instead if dry-running.
    		// If not dry-running, the kubelet config file will be backed up to /etc/kubernetes/tmp/ dir, so that it could be
    		// recovered if there is anything goes wrong.
    		err := upgrade.WriteKubeletConfigFiles(cfg, data.PatchesDir(), dryRun, data.OutputWriter())
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/init.go

    	}
    
    	return &initData{
    		cfg:                     cfg,
    		certificatesDir:         cfg.CertificatesDir,
    		skipTokenPrint:          initOptions.skipTokenPrint,
    		dryRun:                  cmdutil.ValueFromFlagsOrConfig(cmd.Flags(), options.DryRun, cfg.DryRun, initOptions.dryRun).(bool),
    		dryRunDir:               dryRunDir,
    		kubeconfigDir:           initOptions.kubeconfigDir,
    		kubeconfigPath:          initOptions.kubeconfigPath,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 03:37:05 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/upgrade/node/controlplane.go

    		cfg := data.InitCfg()
    		client := data.Client()
    		dryRun := data.DryRun()
    		etcdUpgrade := data.EtcdUpgrade()
    		renewCerts := data.RenewCerts()
    		patchesDir := data.PatchesDir()
    
    		// Upgrade the control plane and etcd if installed on this node
    		fmt.Printf("[upgrade] Upgrading your Static Pod-hosted control plane instance to version %q...\n", cfg.KubernetesVersion)
    		if dryRun {
    			return upgrade.DryRunStaticPodUpgrade(patchesDir, cfg)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/join.go

    	dryRunDir := ""
    	if opt.dryRun || cfg.DryRun {
    		if dryRunDir, err = kubeadmconstants.CreateTempDirForKubeadm("", "kubeadm-join-dryrun"); err != nil {
    			return nil, errors.Wrap(err, "couldn't create a temporary directory on dryrun")
    		}
    	}
    
    	return &joinData{
    		cfg:                   cfg,
    		dryRun:                cmdutil.ValueFromFlagsOrConfig(cmd.Flags(), options.DryRun, cfg.DryRun, opt.dryRun).(bool),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  10. tests/sql_builder_test.go

    		t.Errorf("The first join condition is over written instead of combining")
    	}
    }
    
    func TestToSQL(t *testing.T) {
    	// By default DB.DryRun should false
    	if DB.DryRun {
    		t.Fatal("Failed expect DB.DryRun to be false")
    	}
    
    	if DB.Dialector.Name() == "sqlserver" {
    		t.Skip("Skip SQL Server for this test, because it too difference with other dialects.")
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top