Add deprecation fail-safe for Chart templating #269

Merged
justusbunsi merged 1 commits from refs/pull/269/head into master 2021-12-22 16:25:34 +00:00
justusbunsi commented 2021-12-21 13:10:37 +00:00 (Migrated from gitea.com)

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.

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`.
luhahn (Migrated from gitea.com) approved these changes 2021-12-21 14:47:06 +00:00
luhahn (Migrated from gitea.com) left a comment

LGTM build will succeed if #240 and #268 are merged

LGTM build will succeed if #240 and #268 are merged
nmasse-itix commented 2021-12-21 17:23:16 +00:00 (Migrated from gitea.com)

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:

Error: template: templates/gitea/deprecation.yaml:24:16: executing "templates/gitea/deprecation.yaml" at <.Values.gitea.cache.builtIn>: nil pointer evaluating interface {}.builtIn

Before digging too much into this, do you have any clue why it fails ? Does it work on your side ?

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: ``` Error: template: templates/gitea/deprecation.yaml:24:16: executing "templates/gitea/deprecation.yaml" at <.Values.gitea.cache.builtIn>: nil pointer evaluating interface {}.builtIn ``` Before digging too much into this, do you have any clue why it fails ? Does it work on your side ?
justusbunsi commented 2021-12-21 17:38:08 +00:00 (Migrated from gitea.com)

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:

Error: template: templates/gitea/deprecation.yaml:24:16: executing "templates/gitea/deprecation.yaml" at <.Values.gitea.cache.builtIn>: nil pointer evaluating interface {}.builtIn

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.

> 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: > > ``` > Error: template: templates/gitea/deprecation.yaml:24:16: executing "templates/gitea/deprecation.yaml" at <.Values.gitea.cache.builtIn>: nil pointer evaluating interface {}.builtIn > ``` > > 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.
luhahn commented 2021-12-21 17:38:12 +00:00 (Migrated from gitea.com)

@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.

@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.
luhahn (Migrated from gitea.com) reviewed 2021-12-21 17:38:42 +00:00
luhahn (Migrated from gitea.com) left a comment

.Values.gitea.cache.builtIn needs .Values.gitea.cache to be checked first

.Values.gitea.cache.builtIn needs .Values.gitea.cache to be checked first
luhahn (Migrated from gitea.com) reviewed 2021-12-21 17:46:06 +00:00
justusbunsi commented 2021-12-21 17:59:15 +00:00 (Migrated from gitea.com)

Why is ci passing? The logs clearly state linting failures. ?

Why is ci passing? The logs clearly state linting failures. ?
justusbunsi commented 2021-12-21 18:11:35 +00:00 (Migrated from gitea.com)

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.

> 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.
luhahn (Migrated from gitea.com) approved these changes 2021-12-21 18:18:43 +00:00
luhahn (Migrated from gitea.com) left a comment

All good now :)

All good now :)
justusbunsi commented 2021-12-21 18:21:30 +00:00 (Migrated from gitea.com)

Thanks @nmasse-itix for digging into this PR. There was a lot more to fix.

Thanks @nmasse-itix for digging into this PR. There was a lot more to fix.
wxiaoguang (Migrated from gitea.com) approved these changes 2021-12-22 16:19:32 +00:00
Sign in to join this conversation.
No description provided.