fix(kube): run schema validation on BuildUnstructured

pull/4042/head
Adam Reese 7 years ago
parent 26943763a1
commit b831efdf58
No known key found for this signature in database
GPG Key ID: 06F35E60A7A18DD6

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

Loading…
Cancel
Save