Closed mboglesby closed 6 months ago
We are working on pushing out a fix. In the meantime, the following workaround can be implemented:
Edit your local copy of https://github.com/NetApp/netapp-dataops-toolkit/blob/main/netapp_dataops_k8s/netapp_dataops/k8s/__init__.py (you can find this file wherever your local pip-installed libraries reside), and change "v1beta1" on line 462 to "v1".
def _get_snapshot_api_version() -> str:
return "v1"
This was fixed in v2.5.0 (https://github.com/NetApp/netapp-dataops-toolkit/releases/tag/v2.5.0).
Support for v1beta1 of the Kubernetes VolumeSnapshot API was dropped as of Kubernetes v1.24 (see: https://kubernetes.io/blog/2022/05/03/kubernetes-1-24-release-announcement/#csi-snapshot). This means that all snapshot-related functions/operations within the DataOps Toolkit for Kubernetes will return an error when using Kubernetes v1.24 or above.