Skip to content

Commit 16143ea

Browse files
committed
fix no values crash
Signed-off-by: Gang Liu <gang.liu@daocloud.io>
1 parent af0deb1 commit 16143ea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ func (spec *ChartSpec) GetValuesMap() (map[string]interface{}, error) {
1515
return nil, err
1616
}
1717

18+
if values == nil {
19+
values = map[string]interface{}{}
20+
}
21+
1822
for k, v := range spec.Annotations {
1923
values[toAnnotationKey(k)] = v
2024
}

0 commit comments

Comments
 (0)