Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newResetOptions (0.14 sec)

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

    	cfg                   *kubeadmapi.InitConfiguration
    	resetCfg              *kubeadmapi.ResetConfiguration
    	dryRun                bool
    	cleanupTmpDir         bool
    }
    
    // newResetOptions returns a struct ready for being used for creating cmd join flags.
    func newResetOptions() *resetOptions {
    	// initialize the public kubeadm config API by applying defaults
    	externalcfg := &v1beta4.ResetConfiguration{}
    	// Apply defaults
    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

    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			// initialize an external reset option and inject it to the reset cmd
    			resetOptions := newResetOptions()
    			cmd := newCmdReset(nil, nil, resetOptions)
    
    			// sets cmd flags (that will be reflected on the reset options)
    			for f, v := range tc.flags {
    				cmd.Flags().Set(f, v)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 13:42:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top