Skip to content

Commit 197e19b

Browse files
authored
fix panic: assignment to entry in nil map (#165)
1 parent 4f0b89c commit 197e19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apply/layerApplier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ func (a KubectlLayerApplier) processUpdateVersionAnnotation(layer layers.Layer,
655655
for k, v := range annotations {
656656
if k == "kraan.updateVersion" && v == "true" {
657657
a.logTrace("values for chart with annotation", layer, append(logging.GetObjKindNamespaceName(source), "values", logging.LogJSON(source.Spec.Values))...)
658-
var values map[string]interface{}
658+
values := make(map[string]interface{})
659659
if source.Spec.Values != nil {
660660
err := json.Unmarshal(source.Spec.Values.Raw, &values)
661661
if err != nil {

0 commit comments

Comments
 (0)