mirror of https://github.com/helm/helm
copyValue panicked in two more places when given values that are not plain YAML data: - a struct field or pointer element holding a nil interface hit 'reflect: call of reflect.Value.Set on zero Value', because reflect.ValueOf(nil) returns a zero Value that cannot be set. - a struct with unexported fields, such as time.Time, hit 'reflect.Value.Interface: cannot return value obtained from unexported field or method'. Both are reachable from the SDK through CoalesceValues and action.Install/Upgrade, and crash the calling process. Nil interfaces are now stored as the zero value of the destination, matching the slice fix in #31751. Structs with unexported fields now return an "unsupported type" error, like the existing default case, since Helm only needs to deep copy POD values. Closes #32711 Signed-off-by: Nitin Kumar <nitinraj844126@gmail.com>pull/32712/head
parent
53dfa521e0
commit
3a1d6b4db0
Loading…
Reference in new issue