Repository navigation
fix: a kubernetes upgrade with --values applies them at the installed version - #46
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A Kubernetes upgrade applies the
--valuesfile again, but only when the version changes. At the installed version,upgrade --valuessaid "There is nothing to upgrade", so a values file changed after an upgrade (herecontainers.rte.podPerJob.mounts, which 7.9.0's job pods need for files of the shared volume) could only be applied withhelm upgradeby hand. On Kubernetes,upgrade --values <file>at the installed version now asks "Apply the values again to 7.9.0?", backs up the database, runs the helm upgrade with the file (kept as the one to apply from then on) and offers the rollback as an upgrade does. Without--valuesit still has nothing to do, and says how to apply a changed file. Four new texts, in all 11 languages.Found while upgrading a 7.8.0 Kubernetes install (released installer, kind) to the 7.9.0 release candidate with the installer from main: the playbooks reading
persistent/varsand a role ofpersistent/ansible/rolesfailed as documented, and passed once this build applied a values file listing them inpodPerJob.mounts.Checklist
<type>/<description>and the title is a Conventional Commitgofmt -l .prints nothing, andgo vet ./...andgo test ./...pass (100.0% coverage)internal/i18n/locales