crds

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is struct used to build the CRD object

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new builder for creating CRD

func (*Builder) Build

Build returns the CustomResourceDefinition from the builder

func (*Builder) WithGroup

func (b *Builder) WithGroup(groupName string) *Builder

WithGroup is used to add group field to the CRD

func (*Builder) WithKind

func (b *Builder) WithKind(kind string) *Builder

WithKind is used to add kind field to the CRD

func (*Builder) WithListKind

func (b *Builder) WithListKind(listKind string) *Builder

WithListKind is used to add listkind field to the CRD

func (*Builder) WithName

func (b *Builder) WithName(name string) *Builder

WithName is used to add name field to the CRD

func (*Builder) WithPlural

func (b *Builder) WithPlural(plural string) *Builder

WithPlural is used to add plural field to the CRD

func (*Builder) WithPrinterColumns

func (b *Builder) WithPrinterColumns(columnName, columnType, jsonPath string) *Builder

WithPrinterColumns is used to add printercolumns field to the CRD

func (*Builder) WithPriorityPrinterColumns added in v0.4.7

func (b *Builder) WithPriorityPrinterColumns(columnName, columnType, jsonPath string, priority int32) *Builder

WithPriorityPrinterColumns is used to add printercolumns field to the CRD with priority field

func (*Builder) WithScope

func (b *Builder) WithScope(scope apiext.ResourceScope) *Builder

WithScope is used to add scope field to the CRD

func (*Builder) WithShortNames

func (b *Builder) WithShortNames(shortNames []string) *Builder

WithShortNames is used to add shortnames field to the CRD

func (*Builder) WithVersion

func (b *Builder) WithVersion(version string) *Builder

WithVersion is used to add version field to the CRD

type CustomResource

type CustomResource struct {
	// contains filtered or unexported fields
}

CustomResource is a wrapper over the CustomResourceDefinition of apiextensions, used to build the CRD object

func (*CustomResource) GetAPIObject

func (cr *CustomResource) GetAPIObject() *apiext.CustomResourceDefinition

GetAPIObject returns the CRD API from the wrapper struct

Jump to

Keyboard shortcuts

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