- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AmbiguousKindError (0.22 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/errors.go
_, ok := target.(*AmbiguousResourceError) return ok } // AmbiguousKindError is returned if the RESTMapper finds multiple matches for a kind type AmbiguousKindError struct { PartialKind schema.GroupVersionKind MatchingResources []schema.GroupVersionResource MatchingKinds []schema.GroupVersionKind } func (e *AmbiguousKindError) Error() string { switch {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 11 22:50:51 UTC 2022 - 4.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/errors_test.go
new: func() error { return &AmbiguousResourceError{} }, matcherFunc: IsAmbiguousError, }, { name: "AmbiguousKindError", input: &AmbiguousKindError{MatchingResources: []schema.GroupVersionResource{{}}}, new: func() error { return &AmbiguousKindError{} }, matcherFunc: IsAmbiguousError, }, { name: "NoResourceMatchError",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 11 22:50:51 UTC 2022 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper.go
return allMappings[0], nil } if len(allMappings) > 1 { var kinds []schema.GroupVersionKind for _, m := range allMappings { kinds = append(kinds, m.GroupVersionKind) } return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} } if len(errors) > 0 { return nil, utilerrors.NewAggregate(errors) } return nil, &NoKindMatchError{GroupKind: gk, SearchedVersions: versions} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority.go
} if len(remaining) == 1 { return remaining[0], originalErr } var kinds []schema.GroupVersionKind for _, m := range mappings { kinds = append(kinds, m.GroupVersionKind) } return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} } func (m PriorityRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) { return m.Delegate.RESTMappings(gk, versions...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go
err: errors.New("fail on this"), }, { name: "return error for ambiguous", mapper: PriorityRESTMapper{ Delegate: allMappers, }, input: schema.GroupKind{Kind: "Foo"}, err: &AmbiguousKindError{ PartialKind: schema.GroupVersionKind{Kind: "Foo"}, MatchingKinds: []schema.GroupVersionKind{ {Kind: "Foo", Version: "v1alpha1"}, {Kind: "Foo", Version: "v1"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 06 15:24:58 UTC 2018 - 13.6K bytes - Viewed (0)