func (m HardCodedFirstRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) {
	// not exactly one version, delegate
	if len(versions) != 1 {
		return m.RESTMapper.RESTMappings(gk, versions...)
	}
	gvk := gk.WithVersion(versions[0])

	single, ok := m.Mapping[gvk]
	// not handled, delegate
	if !ok {
		return m.RESTMapper.RESTMappings(gk, versions...)
	}

	return []*meta.RESTMapping{&single}, nil
}
// RESTMapping is the only function called today.  The firsthit restmapper ought to make this work right.  OwnerReferencesPermissionEnforcement
// only ever calls with one version.
RESTMapping is the only function called today.  The firsthit restmapper ought to make this work right.  OwnerReferencesPermissionEnforcement
only ever calls with one version.
// RESTMapping is the only function called today . The firsthit restmapper ought to make this work right . OwnerReferencesPermissionEnforcement // only ever calls with one version .
func (m HardCodedFirstRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) {
	if len(versions) != 1 {
		return m.RESTMapper.RESTMappings(gk, versions...)
	}
	gvk := gk.WithVersion(versions[0])
	single, ok := m.Mapping[gvk]
	if !ok {
		return m.RESTMapper.RESTMappings(gk, versions...)
	}
	return []*meta.RESTMapping{&single}, nil
}
func ( m HardCodedFirstRESTMapper ) RESTMappings ( gk schema . GroupKind , versions ... string ) ( [ ] * meta . RESTMapping , error ) { if len ( versions ) != 1 { return m . RESTMapper . RESTMappings ( gk , versions ... ) } gvk := gk . WithVersion ( versions [ 0 ] ) single , ok := m . Mapping [ gvk ] if ! ok { return m . RESTMapper . RESTMappings ( gk , versions ... ) } return [ ] * meta . RESTMapping { & single } , nil }
RESTMapping is the only function called today.
RESTMapping is the only function called today .
// not exactly one version, delegate // not handled, delegate