-
Notifications
You must be signed in to change notification settings - Fork 509
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 a bug when rendering subcharts #381
fix a bug when rendering subcharts #381
Conversation
williepaul
commented
Nov 12, 2020
- in some cases, subcharts could not be rendered properly
- change how we render values such that default capabilities are set, preventing rendering errors
- set lintmode to true to allow ignoring of certain rendering errors from within the rendering engine
- add resource count checking to load-dir unit tests
- update error messages to make sure we are including the error data
- in some cases, subcharts could not be rendered properly - change how we render values such that default capabilities are set, preventing rendering errors - set lintmode to true to allow ignoring of certain rendering errors from within the rendering engine - add resource count checking to load-dir unit tests - update error messages to make sure we are including the error data
Codecov Report
@@ Coverage Diff @@
## master #381 +/- ##
==========================================
+ Coverage 65.90% 65.95% +0.05%
==========================================
Files 80 80
Lines 1830 1830
==========================================
+ Hits 1206 1207 +1
+ Misses 521 520 -1
Partials 103 103
|
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.
Minor changes requested. Also can you please change the Title ? I think its more than a bug fix ;)
return iacDocuments, chartMap, err | ||
} | ||
|
||
// for each template file found, render and save an iacDocument | ||
var templateFileMap map[string][]*string | ||
templateFileMap, err = utils.FindFilesBySuffix(filepath.Join(chartDir, helmTemplateDir), h.getHelmTemplateExtensions()) | ||
if err != nil { | ||
logger.Warn("error while calling FindFilesBySuffix") | ||
logger.Warn("error while calling FindFilesBySuffix", zap.Error(err)) |
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.
logger.Warn("error while calling FindFilesBySuffix", zap.Error(err)) | |
logger.Error("error while calling FindFilesBySuffix", zap.Error(err)) |
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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.
Can we also add vendor/ here?
- errors were output when helm template rendering created a blank file, which is still valid yaml - the "invalid kind" message is suppressed in this case, since rendering an empty template may be intentional - error log levels and also error messages were updated per review comments
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |