- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for infoForObject (0.07 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/mapper.go
} ret.Client = client } return ret, nil } // InfoForObject creates an Info object for the given Object. An error is returned // if the object cannot be introspected. Name and namespace will be set into Info // if the mapping's MetadataAccessor can retrieve them. func (m *mapper) infoForObject(obj runtime.Object, typer runtime.ObjectTyper, preferredGVKs []schema.GroupVersionKind) (*Info, error) {
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
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 } if len(info.ResourceVersion) != 0 { item.ResourceVersion = info.ResourceVersion }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 21.3K bytes - Viewed (0)