Skip to content

Commit 710e58d

Browse files
bosbaberCopilot
andauthored
Update chartvalidator/checker/engine_chart_rendering.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 53a124d commit 710e58d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

chartvalidator/checker/engine_chart_rendering.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ func (engine *ChartRenderingEngine) renderSingleChart(chart ChartRenderParams, w
100100

101101
// Add API versions if any
102102
for _, apiVer := range engine.apiVersions {
103-
args = append(args, "--api-versions", apiVer)
103+
if apiVer != "" {
104+
args = append(args, "--api-versions", apiVer)
105+
}
104106
}
105107

106108
logEngineDebug(engine.name, workerId, fmt.Sprintf("helm %s", strings.Join(args, " ")))

0 commit comments

Comments
 (0)