@@ -189,6 +189,7 @@ func (h *LibClient) upgradeRelease(releaseName string, chartName string, valuesP
189189 }
190190
191191 upg .Install = true
192+ upg .SkipCRDs = true
192193 upg .MaxHistory = int (options .HistoryMax )
193194 upg .Timeout = options .Timeout
194195
@@ -235,6 +236,7 @@ func (h *LibClient) upgradeRelease(releaseName string, chartName string, valuesP
235236 if helmPostRenderer != nil {
236237 instClient .PostRenderer = helmPostRenderer
237238 }
239+ instClient .SkipCRDs = true
238240 instClient .Timeout = options .Timeout
239241 instClient .ReleaseName = releaseName
240242 instClient .UseReleaseName = true
@@ -434,14 +436,14 @@ func (h *LibClient) Render(releaseName, chartName string, valuesPaths, setValues
434436 slog .String ("chart" , chartName ),
435437 slog .String ("namespace" , namespace ))
436438
437- inst := newInstAction (namespace , releaseName )
439+ inst := newDryRunInstAction (namespace , releaseName )
438440
439441 rs , err := inst .Run (chart , resultValues )
440442 if err != nil {
441443 // helm render can fail because the CRD were previously created
442444 // handling this case we can reinitialize RESTClient and repeat one more time by backoff
443445 _ = h .actionConfigInit ()
444- inst = newInstAction (namespace , releaseName )
446+ inst = newDryRunInstAction (namespace , releaseName )
445447
446448 rs , err = inst .Run (chart , resultValues )
447449 }
@@ -462,7 +464,7 @@ func (h *LibClient) Render(releaseName, chartName string, valuesPaths, setValues
462464 return rs .Manifest , nil
463465}
464466
465- func newInstAction (namespace , releaseName string ) * action.Install {
467+ func newDryRunInstAction (namespace , releaseName string ) * action.Install {
466468 inst := action .NewInstall (actionConfig )
467469 inst .DryRun = true
468470
0 commit comments