- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for preferredGVKs (0.07 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/mapper.go
func (m *mapper) infoForObject(obj runtime.Object, typer runtime.ObjectTyper, preferredGVKs []schema.GroupVersionKind) (*Info, error) { groupVersionKinds, _, err := typer.ObjectKinds(obj) if err != nil { return nil, fmt.Errorf("unable to get type info from the object %q: %v", reflect.TypeOf(obj), err) } gvk := groupVersionKinds[0] if len(groupVersionKinds) > 1 && len(preferredGVKs) > 0 { gvk = preferredObjectKind(groupVersionKinds, preferredGVKs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 03 10:53:18 UTC 2024 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go
var preferredGVKs []schema.GroupVersionKind if info.Mapping != nil && !info.Mapping.GroupVersionKind.Empty() { preferredGVKs = append(preferredGVKs, info.Mapping.GroupVersionKind) } var errs []error for i := range items { item, err := v.mapper.infoForObject(items[i], v.typer, preferredGVKs) if err != nil { errs = append(errs, err) continue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 21.3K bytes - Viewed (0)