- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateDryRun (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go
} allErrs = append(allErrs, ValidateDryRun(field.NewPath("dryRun"), options.DryRun)...) return allErrs } func ValidateCreateOptions(options *metav1.CreateOptions) field.ErrorList { allErrs := field.ErrorList{} allErrs = append(allErrs, ValidateFieldManager(options.FieldManager, field.NewPath("fieldManager"))...) allErrs = append(allErrs, ValidateDryRun(field.NewPath("dryRun"), options.DryRun)...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:52:02 UTC 2022 - 13.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go
func TestValidDryRun(t *testing.T) { tests := [][]string{ {}, {"All"}, {"All", "All"}, } for _, test := range tests { t.Run(fmt.Sprintf("%v", test), func(t *testing.T) { if errs := ValidateDryRun(field.NewPath("dryRun"), test); len(errs) != 0 { t.Errorf("%v should be a valid dry-run value: %v", test, errs) } }) } } func TestInvalidDryRun(t *testing.T) { tests := [][]string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 15.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
func cleanDryRun(u *url.URL) string { // avoid allocating when we don't see dryRun in the query if !strings.Contains(u.RawQuery, "dryRun") { return "" } dryRun := u.Query()["dryRun"] if errs := validation.ValidateDryRun(nil, dryRun); len(errs) > 0 { return "invalid" } // Since dryRun could be valid with any arbitrarily long length // we have to dedup and sort the elements before joining them together
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 07:29:19 UTC 2023 - 35K bytes - Viewed (0)