fix: skaffold render namespace regression in v2#8482
Merged
gsquared94 merged 1 commit intoGoogleContainerTools:mainfrom Mar 2, 2023
Merged
fix: skaffold render namespace regression in v2#8482gsquared94 merged 1 commit intoGoogleContainerTools:mainfrom
gsquared94 merged 1 commit intoGoogleContainerTools:mainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8482 +/- ##
==========================================
- Coverage 70.48% 65.20% -5.28%
==========================================
Files 515 602 +87
Lines 23150 29912 +6762
==========================================
+ Hits 16317 19505 +3188
- Misses 5776 8937 +3161
- Partials 1057 1470 +413
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
renzodavid9
reviewed
Mar 1, 2023
Contributor
|
LGTM, only thing that might make sense is to add a validation/error for |
2e402e0 to
9a49100
Compare
renzodavid9
approved these changes
Mar 2, 2023
aaron-prindle
pushed a commit
that referenced
this pull request
Mar 2, 2023
(cherry picked from commit e5a8ea9)
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.
Fixes: b/265799040
Description
From helm/helm#3553
helm templatecommand run with the--namespaceflag doesn't set themetadata.namespacein the rendered manifests but only sets{{.Release.Namespace}}templates. In Skaffold v1, thedeploy.helm.releases[i].namespaceproperty was also being passed as the--namespaceflag for askaffold applycommand. To preserve this behavior in v2 when upgrading from an old config, the upgrade logic is changed to duplicate thedeploy.helm.releasestomanifests.helm.releases. So we can use the helm release namespace values again in theskaffold applycommand.