crdloader

package
v1.118.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileToCRD

func FileToCRD(fileName string) (*apiextensions.CustomResourceDefinition, error)

func GetCRD

func GetCRD(group, version, kind string) (*apiextensions.CustomResourceDefinition, error)

Find a matching CRD from disk, the group and version parameters are optional

func GetCRDForGVK

Find a matching CRD from disk

func GetCRDForKind

func GetCRDForKind(kind string) (*apiextensions.CustomResourceDefinition, error)

Find a matching CRD from disk

func LoadAllCRDs added in v1.114.0

func LoadAllCRDs() ([]apiextensions.CustomResourceDefinition, error)

LoadAllCRDs returns the list of all the CRDs Config Connector manages, including the ones map to GCP resources, and the ones used to manage the Config Connector operator.

func LoadCRDs

LoadCRDs returns the list of CRDs Config Connector manages that map to GCP resources.

Types

type CrdLoader

type CrdLoader struct {
	// contains filtered or unexported fields
}

func New

func New(kubeClient client.Client) *CrdLoader

func (*CrdLoader) GetCRD

func (l *CrdLoader) GetCRD(group, version, kind string) (*apiextensions.CustomResourceDefinition, error)

Find a matching CRD in the API server, the group and version parameters are optional

func (*CrdLoader) GetCRDForGVK

Find a matching CRD in the API server

func (*CrdLoader) GetCRDForKind

func (l *CrdLoader) GetCRDForKind(kind string) (*apiextensions.CustomResourceDefinition, error)

Find a matching CRD in the API server

Jump to

Keyboard shortcuts

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