Documentation ¶
Index ¶
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
func MapperProvider(c *rest.Config) (meta.RESTMapper, error)
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 DynamicRESTMapper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.