crd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 11 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCRD

func ApplyCRD(ctx context.Context, client extv1client.ApiextensionsV1beta1Interface, crdName, kind, plural string, shortNames []string, groupVersion schema.GroupVersion, validation *extv1.CustomResourceValidation) error

ApplyCRD creates or updates the CRD - old func for compatibility

func WaitForCRDReady

func WaitForCRDReady(ctx context.Context, client extv1client.ApiextensionsV1beta1Interface, crdName string) error

WaitForCRDReady blocks until the CRD is ready.

Types

type Builder

type Builder struct {
	CRD *extv1.CustomResourceDefinition
	// contains filtered or unexported fields
}

Builder builds CRDs

func New

func New(
	crdName string,
	names extv1.CustomResourceDefinitionNames,
	groupVersion schema.GroupVersion,
) *Builder

New returns a new CRD builder

func (*Builder) Apply

Apply CRD to cluster

func (*Builder) Build

func (b *Builder) Build() *Builder

Build the CRD

func (*Builder) WithAdditionalPrinterColumns

func (b *Builder) WithAdditionalPrinterColumns(cols []extv1.CustomResourceColumnDefinition) *Builder

WithAdditionalPrinterColumns add additional printer columns to the kubectl output

func (*Builder) WithValidation

func (b *Builder) WithValidation(validation *extv1.CustomResourceValidation) *Builder

WithValidation add validation struct to the CRDs field

Jump to

Keyboard shortcuts

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