mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-15 22:34:21 +03:00
[Openstack] Cleanup the old in-tree openstack cloud provider (#5742)
* Added playbook to migrate openstack cloud provider * remove old cloud provider config * Rewrite provisioned-by annotation on Cinder PVs * update indents Co-authored-by: Jonathan Süssemilch Poulain <jonathan@sofiero.net>
This commit is contained in:
2
extra_playbooks/files/get_cinder_pvs.sh
Normal file
2
extra_playbooks/files/get_cinder_pvs.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
kubectl get pv -o go-template --template='{{ range .items }}{{ $metadata := .metadata }}{{ with $value := index .metadata.annotations "pv.kubernetes.io/provisioned-by" }}{{ if eq $value "kubernetes.io/cinder" }}{{printf "%s\n" $metadata.name}}{{ end }}{{ end }}{{ end }}'
|
||||
Reference in New Issue
Block a user