fix(kube): run schema validation on BuildUnstructured

parent 26943763
...@@ -139,6 +139,7 @@ func (c *Client) BuildUnstructured(namespace string, reader io.Reader) (Result, ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment