- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateDiscovery (0.12 sec)
-
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
// TODO: Maybe validate .Taints as well in the future using something like validateNodeTaints() in pkg/apis/core/validation return allErrs } // ValidateDiscovery validates discovery related configuration and collects all encountered errors func ValidateDiscovery(d *kubeadm.Discovery, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if d.BootstrapToken == nil && d.File == nil {
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
&kubeadmapi.Discovery{}, false, }, } for _, rt := range tests { t.Run(rt.name, func(t *testing.T) { err := ValidateDiscovery(rt.d, nil).ToAggregate() if (err == nil) != rt.expected { t.Errorf( "test case failed: ValidateDiscovery:\n\texpected: %t\n\t actual: %t", rt.expected, (err == nil), ) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 46.1K bytes - Viewed (0)