-
-
Notifications
You must be signed in to change notification settings - Fork 195
Closed
Labels
Description
releases:
- name: foo
chart: ./raw
values:
- templates:
- |
apiVersion: v1
kind: ConfigMap
metadata:
name: "abc"
namespace: "abc"
data:
foo: FOO
go code:
func (hs *HelmState) UnmarshalYAML(b []byte) error {
decodeVerify := yaml.NewDecoder(b, true)
helmStateInfo := make(map[string]interface{})
if err := decodeVerify(&helmStateInfo); err != nil {
return err
}
isStrict, err := policy.Checker(helmStateInfo)
if err != nil {
if isStrict {
return err
}
fmt.Fprintf(os.Stderr, "Warning: %v\n", err)
}
decodeState := yaml.NewDecoder(b, true)
return decodeState((*helmStateAlias)(hs))
}
b []byte:
releases:
- name: foo
chart: ./raw
values:
- templates:
- |
apiVersion: v1
kind: ConfigMap
metadata:
name: "abc"
namespace: "abc"
data:
foo: FOO
Lost the indentation