fix(helm): Disable schema validation for manifests

Signed-off-by: Morten Torkildsen <mortent@google.com>
release-2.14 v2.14.1
Morten Torkildsen 6 years ago committed by Matthew Fisher
parent bf377c5ad5
commit 5270352a09
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -157,13 +157,16 @@ func (c *Client) BuildUnstructured(namespace string, reader io.Reader) (Result,
}
// Validate reads Kubernetes manifests and validates the content.
//
// This function does not actually do schema validation of manifests. Adding
// validation now breaks existing clients of helm: https://github.com/helm/helm/issues/5750
func (c *Client) Validate(namespace string, reader io.Reader) error {
_, err := c.NewBuilder().
Unstructured().
ContinueOnError().
NamespaceParam(namespace).
DefaultNamespace().
Schema(c.validator()).
// Schema(c.validator()). // No schema validation
Stream(reader, "").
Flatten().
Do().Infos()

Loading…
Cancel
Save