Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow diff to include crds #762

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

obirhuppertz
Copy link

Goal

This PR allows usage of helm template flag --include-crds during a helm diff upgrade.

Before

When using helmfile with helm diff upgrade command you have to use post-renderer to get the fully rendered manifest and allow rendering of all resources including CRDs that are deployed via a sub-chart i.e. kyverno.

Use Case

In order to be able to move a way from post-renderer and use kustomization builtin support of helmfile without breaking the manifest that you can get via helm get manifest -n namespace release it is needed to allow rendering the included crds if the chart decided to render these via a dependency.

It also makes three-way-merge more usefull as you now also get the diff for included crd changes.

After

Merging this PR into an upcoming release would allow anyone to be able to catch changes to included crd changes during a helm diff upgrade.

Breaking Changes?

None to be expected, the default is set to false which reflects the current behavior. You have to pass --include-crds excplitictly to also render included crds when calling template before diff when using three-way-merge
We used helm diff upgrade command in conjunction with helmfile with kustomize postrenderer.

Follow up

helmfile maintainers could add this flag to helmfile diff command in future versions. Using just the patched version would need you to add - "--include-crds" to helmDefaults.diffArgs array.

(at)Others who read this - please upvote if you find this PR useful.

@AMOKANDY
Copy link

AMOKANDY commented Apr 4, 2025

Fine!. But please add the new option to “readme.md”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants