Merge pull request #4042 from adamreese/fix/kube-validate

fix(kube): run schema validation on BuildUnstructured
pull/3973/merge
Adam Reese 7 years ago committed by GitHub
commit 2d5e05b63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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