Skip to content

Commit 4809cf0

Browse files
0xavi0thardeck
authored andcommitted
Avoids the possibility of returning a nil map from getValues when options.Helm is set (#3567)
Refers to: #3564 Signed-off-by: Xavi Garcia <[email protected]>
1 parent 995a10f commit 4809cf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/helmdeployer/install.go

+4
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ func (h *Helm) getValues(ctx context.Context, options fleet.BundleDeploymentOpti
212212
values = options.Helm.Values.Data
213213
}
214214

215+
// avoid the possibility of returning a nil map
216+
if values == nil {
217+
values = map[string]interface{}{}
218+
}
215219
// do not run this when using template
216220
if !h.template {
217221
for _, valuesFrom := range options.Helm.ValuesFrom {

0 commit comments

Comments
 (0)