Guide for Releasing the CRD Helm Chart
This guide is when the CRD has changed must be released.
[!IMPORTANT] Release the CRD Helm chart first, the operator Helm chart second
This way dependency errors from operator to CRD can be caught earlier and the operator uses the correct version of the CRD.
[!IMPORTANT] Major CRD version changes may break the operator.
Double check if a major version change is really the thing you want and also check the version dependency annotation
k8s.cloudogu.com/ces-dependency/k8s-dogu-operator-crdin$workspace/k8s/helm/Chart.yaml
- change to the
developbranch, pull in any further changes - ensure the new feature/bugfix arrived in
develop - log-in into the desired Helm registry
helm registry login ${target-registry}- keep your account log-in and passphrase handy
- find the current CRD component version
- look into the desired Helm registry
- decide on the new version (here
${NewCRDVersion}) - create the CRD Helm chart
DEV_CRD_VERSION=${NewCRDVersion} make crd-helm-package- the version is only defined in the
target/k8s/helm-crd/Chart.yamlfile - a file with the corresponding version should reside under
target/k8s/helm-crd/k8s-dogu-operator-crd-${NewCRDVersion}.tgz
- review and commit any changes to YAML files that might occur during
kubebuilderusage- these should consist only of changes to blanks or the kubebuilder version
- push the new Helm chart version to the registry
helm push target/k8s/helm-crd/k8s-dogu-operator-crd-${NewCRDVersion}.tgz oci://${target-registry}/k8s/
- release the operator Helm chart as usual
- run
make controller-release - keep in mind, the operator version may have a totally different version number, though
- while reviewing
CHANGELOG.md, mention the CRD release of${NewCRDVersion} - continue to finish the release
- run
Last updated on 3/24/2025