- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateInitConfiguration (0.41 sec)
-
cmd/kubeadm/app/util/config/initconfiguration.go
if err := SetInitDynamicDefaults(internalcfg, opts.SkipCRIDetect); err != nil { return nil, err } // Validates cfg (flags/configs + defaults + dynamic defaults) if err := validation.ValidateInitConfiguration(internalcfg).ToAggregate(); err != nil { return nil, err } return internalcfg, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 05 12:41:16 UTC 2024 - 17.3K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
"k8s.io/kubernetes/cmd/kubeadm/app/constants" "k8s.io/kubernetes/cmd/kubeadm/app/features" kubeadmutil "k8s.io/kubernetes/cmd/kubeadm/app/util" ) // ValidateInitConfiguration validates an InitConfiguration object and collects all encountered errors func ValidateInitConfiguration(c *kubeadm.InitConfiguration) field.ErrorList { allErrs := field.ErrorList{}
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
}, NodeRegistration: kubeadmapi.NodeRegistrationOptions{Name: nodename, CRISocket: criPath}, }, true}, } for _, rt := range tests { actual := ValidateInitConfiguration(rt.s) if (len(actual) == 0) != rt.expected { t.Errorf( "%s test case failed:\n\texpected: %t\n\t actual: %t", rt.name, rt.expected, (len(actual) == 0), ) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 46.1K bytes - Viewed (0)