Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for CleanupTmpDir (0.45 sec)

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

    		forceReset:            cmdutil.ValueFromFlagsOrConfig(cmd.Flags(), options.ForceReset, resetCfg.Force, opts.externalcfg.Force).(bool),
    		cleanupTmpDir:         cmdutil.ValueFromFlagsOrConfig(cmd.Flags(), options.CleanupTmpDir, resetCfg.CleanupTmpDir, opts.externalcfg.CleanupTmpDir).(bool),
    	}, nil
    }
    
    // AddResetFlags adds reset flags
    func AddResetFlags(flagSet *flag.FlagSet, resetOptions *resetOptions) {
    	flagSet.StringVar(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 12:26:58 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/reset_test.go

    				options.DryRun:                "true",
    				options.CleanupTmpDir:         "true",
    			},
    			data: &resetData{
    				certificatesDir:       "/tmp",
    				criSocketPath:         constants.CRISocketCRIO,
    				ignorePreflightErrors: sets.New("all"),
    				forceReset:            true,
    				dryRun:                true,
    				cleanupTmpDir:         true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 13:42:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/reset/data.go

    	Cfg() *kubeadmapi.InitConfiguration
    	ResetCfg() *kubeadmapi.ResetConfiguration
    	DryRun() bool
    	Client() clientset.Interface
    	CertificatesDir() string
    	CRISocketPath() string
    	CleanupTmpDir() bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 09:03:31 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/phases/reset/data_test.go

    func (t *testData) CertificatesDir() string                  { return "" }
    func (t *testData) CRISocketPath() string                    { return "" }
    func (t *testData) CleanupTmpDir() bool                      { return false }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 09:03:31 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/reset/cleanupnode.go

    		Name:    "cleanup-node",
    		Aliases: []string{"cleanupnode"},
    		Short:   "Run cleanup node.",
    		Run:     runCleanupNode,
    		InheritFlags: []string{
    			options.CertificatesDir,
    			options.NodeCRISocket,
    			options.CleanupTmpDir,
    			options.DryRun,
    		},
    	}
    }
    
    func runCleanupNode(c workflow.RunData) error {
    	dirsToClean := []string{filepath.Join(kubeadmconstants.KubernetesDir, kubeadmconstants.ManifestsSubDirName)}
    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/options/constant.go

    	Patches = "patches"
    
    	// PrintManifest flag instructs kubeadm to print the addon manifests to STDOUT instead of installing them.
    	PrintManifest = "print-manifest"
    
    	// CleanupTmpDir flag indicates whether reset will cleanup the tmp dir
    	CleanupTmpDir = "cleanup-tmp-dir"
    
    	// AllowExperimentalAPI flag can be used to allow experimental / work in progress APIs
    	AllowExperimentalAPI = "allow-experimental-api"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/config/resetconfiguration_test.go

    			`),
    			expectErr: true,
    		},
    		{
    			name: "valid v1beta4 is loaded",
    			fileContents: dedent.Dedent(`
    				apiVersion: kubeadm.k8s.io/v1beta4
    				kind: ResetConfiguration
    				force: true
    				cleanupTmpDir: true
    				criSocket: unix:///var/run/containerd/containerd.sock
    				certificatesDir: /etc/kubernetes/pki
    				ignorePreflightErrors:
    				- a
    				- b
    			`),
    		},
    	}
    
    	for _, rt := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 06 13:21:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go

    type ResetConfiguration struct {
    	metav1.TypeMeta `json:",inline"`
    
    	// CleanupTmpDir specifies whether the "/etc/kubernetes/tmp" directory should be cleaned during the reset process.
    	// +optional
    	CleanupTmpDir bool `json:"cleanupTmpDir,omitempty"`
    
    	// CertificatesDir specifies the directory where the certificates are stored. If specified, it will be cleaned during the reset process.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/apis/kubeadm/v1beta4/zz_generated.conversion.go

    }
    
    func autoConvert_v1beta4_ResetConfiguration_To_kubeadm_ResetConfiguration(in *ResetConfiguration, out *kubeadm.ResetConfiguration, s conversion.Scope) error {
    	out.CleanupTmpDir = in.CleanupTmpDir
    	out.CertificatesDir = in.CertificatesDir
    	out.CRISocket = in.CRISocket
    	out.DryRun = in.DryRun
    	out.Force = in.Force
    	out.IgnorePreflightErrors = *(*[]string)(unsafe.Pointer(&in.IgnorePreflightErrors))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/types.go

    	// CertificatesDir specifies the directory where the certificates are stored. If specified, it will be cleaned during the reset process.
    	CertificatesDir string
    
    	// CleanupTmpDir specifies whether the "/etc/kubernetes/tmp" directory should be cleaned during the reset process.
    	CleanupTmpDir bool
    
    	// CRISocket is used to retrieve container runtime info and used for the removal of the containers.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top