upgrade gopkg.in/yaml from v1 to v2 to strictly unmarshal

This commit is contained in:
Cedric Meury
2018-04-28 00:17:56 +02:00
parent 8c6137ee62
commit 2a1cdb0253
26 changed files with 1881 additions and 1323 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import (
"bytes"
"regexp"
yaml "gopkg.in/yaml.v1"
yaml "gopkg.in/yaml.v2"
)
// HelmState structure for the helmfile
@@ -91,7 +91,7 @@ func readFromYaml(content []byte, file string) (*HelmState, error) {
var state HelmState
state.BaseChartPath, _ = filepath.Abs(filepath.Dir(file))
if err := yaml.Unmarshal(content, &state); err != nil {
if err := yaml.UnmarshalStrict(content, &state); err != nil {
return nil, err
}