-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Chart v4 fails on update #3046
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass on this PR looks reasonable. 👍
cmd.DisableOpenAPIValidation = true | ||
cmd.Validate = false | ||
cmd.ClientOnly = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Emulates:
helm template --dry-run=server --validate=false --disable-openapi-validation \
--kube-version $VERSION --api-versions $APIVERSIONS
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3046 +/- ##
==========================================
+ Coverage 36.67% 36.77% +0.09%
==========================================
Files 71 71
Lines 9249 9262 +13
==========================================
+ Hits 3392 3406 +14
+ Misses 5520 5518 -2
- Partials 337 338 +1 ☔ View full report in Codecov by Sentry. |
### Proposed changes This PR explicitly sets the `opttest.SkipInstall()` option for our yaml tests. It is observed that the test framework/automation API is unable successfully run `pulumi install` prior to the other pulumi operations. This error was hit in the presubmit for #3046, but went unnoticed in the past due to the `TestTerraformConvert` installing the right plugins before the other tests hit the installation step. Manual validation: - Deleted the local `~/.pulumi/plugin` folder - Run the tests without the changes and notice the test errors - Run the tests with the changes here and they pass ### Related issues (optional) Fixes: #3048
This PR has been shipped in release v4.13.1. |
Proposed changes
This PR fixes a problem with how Chart v4 uses the Helm library. The design goal is to allow for connectivity during template rendering, to support the lookup function (see helm/helm#9426) and to provide an accurate Capabilities object. Unfortunately we were slightly too aggressive and caused some of Helm's "non-template" code to execute.
This fix works by turning off the
helm template --validation
flag, so that the internalClientOnly
flag is true thus avoiding this block of code that causes the unexpected error. A side-effect ofClientOnly
being true is that the capabilities aren't automatically set, and so we set them using the provider's kube client (akin to using--kube-version
).Detailed changes:
.Capabilities
Related issues (optional)
Closes #3045