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):
- Apply the
volumesnapshots.snapshot.storage.k8s.ioCRD.
$ k apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
- 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)
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
https://github.com/kubernetes-csi/external-snapshotter/commit/c3beea55ba5a0f6c493ab77a3ab6546b5a6c0cea#diff-f816aba0495ad43b0e3b8b097e94a8d2 this is the PR which introduced the breakage. we should NOT use anyof according to (details)