fix(helm): Fix manifest validation

Manifest validation is done by the builder, but it requires that the schema is set before the Stream function is called. Otherwise the StreamVisitor is created without a schema and no validation is done.

Signed-off-by: Morten Torkildsen <mortent@google.com>
pull/5576/head
Morten Torkildsen 7 years ago
parent 5027c29b56
commit 32d7f1a3fc

@ -142,8 +142,8 @@ func (c *Client) BuildUnstructured(namespace string, reader io.Reader) (Result,
ContinueOnError().
NamespaceParam(namespace).
DefaultNamespace().
Stream(reader, "").
Schema(c.validator()).
Stream(reader, "").
Flatten().
Do().Infos()
return result, scrubValidationError(err)

Loading…
Cancel
Save