- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateListOptions (0.48 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation.go
"fmt" "k8s.io/apimachinery/pkg/apis/meta/internalversion" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/validation/field" ) // ValidateListOptions returns all validation errors found while validating the ListOptions. func ValidateListOptions(options *internalversion.ListOptions, isWatchListFeatureEnabled bool) field.ErrorList { if options.Watch { return validateWatchOptions(options, isWatchListFeatureEnabled) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 09:55:40 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation_test.go
expectErrors: []string{"resourceVersionMatch: Forbidden: resourceVersionMatch is forbidden when continue is provided"}, }} for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { errs := ValidateListOptions(&tc.opts, tc.watchListFeatureEnabled) if len(tc.expectErrors) > 0 { if len(errs) != len(tc.expectErrors) { t.Errorf("expected %d errors but got %d errors", len(tc.expectErrors), len(errs)) return
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 7.6K bytes - Viewed (0)