Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DefaultedUpgradeConfiguration (0.41 sec)

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

    	} else {
    		config, err = DefaultedUpgradeConfiguration(defaultversionedcfg, opts)
    	}
    	if err == nil {
    		prepareStaticVariables(config)
    	}
    	return config, err
    }
    
    // DefaultedUpgradeConfiguration takes a versioned UpgradeConfiguration (usually filled in by command line parameters), defaults it, converts it to internal and validates it
    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/upgradeconfiguration_test.go

    				},
    			},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			got, _ := DefaultedUpgradeConfiguration(tt.cfg, options)
    			if diff := cmp.Diff(got, tt.want, cmpopts.IgnoreFields(kubeadmapi.UpgradeConfiguration{}, "Timeouts")); diff != "" {
    				t.Errorf("DefaultedUpgradeConfiguration returned unexpected diff (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top