external-snapshotter: volumesnapshots CRD has invalid property: anyOf

What happened: volumesnapshots CRD has invalid property: anyOf

How to reproduce it (as minimally and precisely as possible):

  1. Apply the volumesnapshots.snapshot.storage.k8s.io CRD.
$ k apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
  1. Ensure the following log entry in the kube-apiserver logs:
$ k -n kube-system logs kube-apiserver-m01

E0408 10:21:28.449071       1 customresource_handler.go:655] error building openapi models for volumesnapshots.snapshot.storage.k8s.io: ERROR $root.definitions.io.k8s.storage.snapshot.v1beta1.VolumeSnapshot.properties.status.properties.restoreSize has invalid property: anyOf

Environment:

  • Kubernetes version (use kubectl version): v1.16.8

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

We made a manual change to remove “integer” and keep “string”. It is documented in the README: https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/hack#update-crdsh