Skip to content

Helm Chart: ensure CRD upgrades - #168

Merged
darkmuggle merged 2 commits into
mainfrom
bh/charts-150
Jul 24, 2026
Merged

Helm Chart: ensure CRD upgrades#168
darkmuggle merged 2 commits into
mainfrom
bh/charts-150

Conversation

@darkmuggle

@darkmuggle darkmuggle commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Move CRDs to templates and move to an in-tree subchart, ensuring that CRD upgrades happen on chart upgrades.

Resolves #167

Move CRDs to templates and move to an in-tree subchart,
ensuring that CRD upgrades happen on chart upgrades.
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pcholakov

Copy link
Copy Markdown
Contributor

@darkmuggle you're going to have to accept the CLA to merge this :-)

@lukebond lukebond left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a handful of minor issues i'll leave you to address, but otherwise this is great, thanks so much!

and congrats on your first contribution :)

echo Version: $VERSION
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
- name: Push CRDs helm chart
uses: appany/helm-oci-chart-releaser@v0.3.0

@lukebond lukebond Jul 22, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the helm releaser uses the helm that happens to be in the path, in this case coming from ubuntu-latest. that works today but to future proof and be more deterministic, i suggest using azure/setup-helm... as you have above (:26)

Comment thread README.md
Deployment, install the CRD chart on its own and disable the bundled copy:

```bash
helm upgrade --install restate-operator-crds \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this should include --version <version> as you have done in the release note, line 9. if they followed both blindly they might get the latest CRD schema but pin the operator to an older version.


## Upgrading

If your CRDs came in through the old `crds/` directory (2.8.1 or earlier), Helm doesn't consider them managed yet, so the first upgrade needs a one-time ownership hand-off: either pass `--take-ownership` to the CRD chart, or label/annotate the three CRDs with `app.kubernetes.io/managed-by=Helm` plus the `meta.helm.sh/release-name`/`-namespace` metadata. ArgoCD does this for you on sync. Either way, no custom resources are deleted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--take-ownership is helm >= 3.17.0. you give the fallback for older versions (label/annotate) but would be helpful to be more explicit.

Comment thread AGENTS.md Outdated
version files together to the new version:
`v<version>` tag builds and publishes the docker image and **both** helm charts
(`restate-operator-helm` and `restate-operator-crds`) under that version. It bumps
nothing. In the release commit you must therefore bump all three version files

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the nittiest of nits: i think it's 4, not 3 (Cargo.toml, Cargo.lock, operator Chart.yaml version + dependency constraint, crds Chart.yaml), or you could drop the number and save the bother. i know this is not your doing in this PR but it came up green so i read it!

@darkmuggle

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA.

@darkmuggle

Copy link
Copy Markdown
Contributor Author

recheck

- release.yml: install Helm via azure/setup-helm in the CRDs push job
  instead of relying on the runner's PATH helm
- README.md: pin both chart installs with --version <version>
- release note: note --take-ownership requires Helm >= 3.17.0
- AGENTS.md: correct version-file count (four, not three)
@darkmuggle
darkmuggle merged commit e9bd3a4 into main Jul 24, 2026
5 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish a dedicated restate-operator-crds Helm chart

3 participants