crdloader

package
v1.93.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 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

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