Documentation ¶
Index ¶
- func Create(ctx context.Context, cfg *rest.Config, shouldUpdateCRDs bool) error
- func List() ([]crd.CRD, []crd.CRD, []crd.CRD)
- func Objects(v1beta1 bool) (crds []runtime.Object, crdLockerDeps []runtime.Object, ...)
- func Print(out io.Writer, depOut io.Writer)
- func WriteFiles(crdDirpath, crdDepDirpath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Objects ¶
func Objects(v1beta1 bool) (crds []runtime.Object, crdLockerDeps []runtime.Object, crdControllerDeps []runtime.Object, err error)
Objects returns runtime.Objects for every CRD or CRD Dependency this operator relies on
func WriteFiles ¶
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.
Click to show internal directories.
Click to hide internal directories.