- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateNodeRegistrationOptions (0.19 sec)
-
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
allErrs = append(allErrs, ValidateCertificateKey(c.CertificateKey, fldPath.Child("certificateKey"))...) } return allErrs } // ValidateNodeRegistrationOptions validates the NodeRegistrationOptions object func ValidateNodeRegistrationOptions(nro *kubeadm.NodeRegistrationOptions, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(nro.Name) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 33.4K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go
for _, rt := range tests { nro := kubeadmapi.NodeRegistrationOptions{Name: rt.nodeName, CRISocket: criPath} actual := ValidateNodeRegistrationOptions(&nro, field.NewPath("nodeRegistration")) actualErrors := len(actual) > 0 if actualErrors != rt.expectedErrors { t.Errorf( "failed ValidateNodeRegistrationOptions: value: %v\n\texpected: %t\n\t actual: %t", nro, rt.expectedErrors, actualErrors, ) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 46.1K bytes - Viewed (0)