crd

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Builder

type Builder interface {
	CreateCRDs(ctx context.Context, types ...*TypeDefinition) (map[*TypeDefinition]*apiextensionsv1.CustomResourceDefinition, error)
}

Builder is the interface to build crds from types

func NewBuilder

func NewBuilder(client client.Client) Builder

NewBuilder creates a new crd builder

type TypeDefinition

type TypeDefinition struct {
	GVK      schema.GroupVersionKind
	Singular string
	Plural   string
	Scope    apiextensionsv1.ResourceScope
}

Jump to

Keyboard shortcuts

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