Add deprecation fail-safe for Chart templating #269
No reviewers
Labels
No Label
has
backport
in progress
invalid
kind
breaking
kind
bug
kind
build
kind
dependency
kind
deployment
kind
docs
kind
enhancement
kind
feature
kind
lint
kind
proposal
kind
question
kind
refactor
kind
security
kind
testing
kind
translation
kind
ui
need
backport
priority
critical
priority
low
priority
maybe
priority
medium
reviewed
duplicate
reviewed
invalid
reviewed
wontfix
skip-changelog
status
blocked
status
needs-feedback
status
needs-reviews
status
wip
upstream
gitea
upstream
other
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/helm-chart#269
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "justusbunsi/helm-chart:prevent-deprecation-breakage"
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
@ -0,0 +24,4 @@
{{- if .Values.gitea.cache.builtIn -}}
{{- fail "`gitea.cache.builtIn` does no longer exist. Please use `memcached` at root level instead." -}}
{{- end -}}
{{- if .Values.database.builtIn -}}
this should be .Values.gitea.database -> the gitea is missing
@ -0,0 +25,4 @@
{{- fail "`gitea.cache.builtIn` does no longer exist. Please use `memcached` at root level instead." -}}
{{- end -}}
{{- if .Values.database.builtIn -}}
{{- fail "`database.builtIn` does no longer exist. Builtin databases can be configured inside the dependencies itself. Please refer to the changelog." -}}
this should do the trick:
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.
a7668fdf9e
tofc5716bd4d
All good now :)
Thanks @nmasse-itix for digging into this PR. There was a lot more to fix.