Documentation ¶
Index ¶
- func GetGroupVersionResource(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
- func MapperProvider(c *rest.Config, _ *http.Client) (meta.RESTMapper, error)
- func NewCachedRESTMapper(cfg *rest.Config, underlyingMapper meta.RESTMapper) (meta.RESTMapper, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGroupVersionResource ¶
func GetGroupVersionResource(restMapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
GetGroupVersionResource is a helper to map GVK(schema.GroupVersionKind) to GVR(schema.GroupVersionResource).
func MapperProvider ¶ added in v1.3.0
MapperProvider is a wrapper of cachedRESTMapper which is typically used to generate customized RESTMapper for controller-runtime framework.
func NewCachedRESTMapper ¶ added in v1.3.0
func NewCachedRESTMapper(cfg *rest.Config, underlyingMapper meta.RESTMapper) (meta.RESTMapper, error)
NewCachedRESTMapper builds a cachedRESTMapper with a customized underlyingMapper. If underlyingMapper is nil, defaults to DiscoveryRESTMapper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.