crd

package
v0.0.0-...-e1d6f6c Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyGVK

func PrettyGVK(gvk *schema.GroupVersionKind) string

PrettyGVK returns a group, version, kind representation in order of specificity.

Types

type CRDer

CRDer generates instances of a CustomResourceDefinition.

func NewCRDer

func NewCRDer(data []byte, m ...Modifier) (*CRDer, error)

NewCRDer returns a new CRDer type.

func (*CRDer) Validate

func (c *CRDer) Validate(data []byte) error

Validate returns true if CRD instance is valid.

type Modifier

type Modifier func(crd *apiextensions.CustomResourceDefinition)

A Modifier specifies how to modify a CRD prior to conversion to internal representation

func StripAnnotations

func StripAnnotations() Modifier

StripAnnotations removes annotations from a CRD's metadata

func StripConversion

func StripConversion() Modifier

StripConversion removes conversion from a CRD's spec

func StripLabels

func StripLabels() Modifier

StripLabels removes labels from a CRD's metadata

Jump to

Keyboard shortcuts

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