crd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 12 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]*apiextensionsv1beta1.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    apiextensionsv1beta1.ResourceScope
}

Jump to

Keyboard shortcuts

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