mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-28 17:46:41 +00:00
New Kubernetes versions are now prefixed with "Kubernetes", like: $ ./scripts/get_patch_release.py Kubernetes v1.18.13 Kubernetes v1.17.15 Kubernetes v1.19.5 Kubernetes v1.20.0 Kubernetes v1.20.0-rc.0 v1.20.0-beta.2 v1.18.12 v1.19.4 v1.17.14 v1.20.0-beta.1 v1.20.0-beta.0 v1.20.0-alpha.3 v1.18.10 v1.17.13 The new "Kubernetes" prefix prevents the current logic to not match the version. By splitting the returned version string on words, and returning the last component in get_releases(), the script works as intended again. Signed-off-by: Niels de Vos <ndevos@redhat.com>