What steps did you take and what happened:
Tried to install Velero v1.3.0 on a K8S 1.14 cluster.
What did you expect to happen:
Successful installation; the documentation says that Kubernetes 1.10+ is supported.
Error messages
Every CRD returns an error when going through kubectl apply:
[error validating "build\\manifests\\velero\\crd\\backups.velero.io-customresourcedefinition.json":
error validating data: ValidationError(CustomResourceDefinition.spec):
unknown field "preserveUnknownFields" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec;
if you choose to ignore these errors, turn validation off with --validate=false,
Environment:
This option was first introduced in K8S 1.15; this explains the failure on 1.14.
@bgagnon you can provide the --validate=false flag to kubectl apply to bypass this error. We have this documented for 1.13 and earlier clusters (see https://velero.io/docs/v1.3.0/customize-installation/#generate-yaml-only), but looks like we need to update that to apply to 1.14 and earlier.
Most helpful comment
@bgagnon you can provide the
--validate=falseflag tokubectl applyto bypass this error. We have this documented for 1.13 and earlier clusters (see https://velero.io/docs/v1.3.0/customize-installation/#generate-yaml-only), but looks like we need to update that to apply to 1.14 and earlier.