resource

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 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