crd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, cfg *rest.Config) error

Create creates all CRDs and dependent CRDs in the cluster

func List

func List() ([]crd.CRD, []crd.CRD)

List returns the list of CRDs and dependent CRDs for this operator

func Objects

func Objects(v1beta1 bool) (crds, crdDeps []runtime.Object, err error)

Objects returns runtime.Objects for every CRD or CRD Dependency this operator relies on

func Print

func Print(out io.Writer, depOut io.Writer)

Print prints CRDs to out and dependent CRDs to depOut

func WriteFiles

func WriteFiles(crdDirpath, crdDepDirpath string) error

WriteFiles writes CRDs and dependent CRDs to the paths specified

Note: It is recommended to write CRDs to the templates directory (or similar) and to write CRD dependencies to the crds/ directory since you do not want the uninstall or upgrade of the CRD chart to destroy existing dependent CRDs in the cluster as that could break other components

i.e. if you uninstall the HelmChart CRD, it can destroy an RKE2 or K3s cluster that also uses those CRs to manage internal Kubernetes component state

Types

This section is empty.

Jump to

Keyboard shortcuts

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