Add deprecation fail-safe for Chart templating #269
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/269/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With release 5.0.0 there are so many deprecations and breaking changes
that it is probably a good way to assist the users with values migration
before breaking their environments.
This adds another template file that doesn't render anything but ensures
the removal of dropped or deprecated settings from customized values
files.
For when it is necessary, this check can be disabled via new setting
checkDeprecation
.LGTM build will succeed if #240 and #268 are merged
I'm merging this PR and PR #268 in an integration branch to play with them.
When running the "helm template" command, I get an error:
Before digging too much into this, do you have any clue why it fails ? Does it work on your side ?
I'm guessing its a side-effect from the not yet merged #268. I have a similar error when just commenting out the
gitea.cache.builtIn
without having changed any access to it. Similar failure in Drone build.@nmasse-itix good catch. I saw the error as well and ignored it because i did not rebase onto 240/268. However the error comes up because .Values.gitea.cache does not exist anymore and we try to go even deeper down to builtIn.
.Values.gitea.cache.builtIn needs .Values.gitea.cache to be checked first
Why is ci passing? The logs clearly state linting failures. ?
For the record: Helm changed the behavior with https://github.com/helm/helm/issues/8973. I used an older helm version locally and it failed. Newer versions just log that as info.
All good now :)
Thanks @nmasse-itix for digging into this PR. There was a lot more to fix.