Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReadyCRDs ¶
func GetReadyCRDs(ctx context.Context, client client.Client) (map[string]*apiextensionsv1beta1.CustomResourceDefinition, error)
Types ¶
type Builder ¶
type Builder interface {
CreateCRDs(ctx context.Context, types ...*TypeDefinition) (map[*TypeDefinition]*apiextensionsv1beta1.CustomResourceDefinition, error)
}
Builder is the interface to build crds from types
func NewBuilder ¶
NewBuilder creates a new crd builder
type TypeDefinition ¶
type TypeDefinition struct { GVK schema.GroupVersionKind Singular string Plural string Scope apiextensionsv1beta1.ResourceScope }
Click to show internal directories.
Click to hide internal directories.