resource

package
v0.16.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKnownObjectType added in v0.15.0

func IsKnownObjectType(r runtime.Object, di discovery.CachedDiscoveryInterface) (bool, error)

func ObjectKeyFromObject

ObjectKeyFromObject method wraps client.ObjectKeyFromObject method by additionally checking if passed object is a cluster-scoped resource (e.g. CustomResourceDefinition, ClusterRole etc.) and removing the namespace from the key since cluster-scoped resources are not namespaced.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL