[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:
Hugo Blom
2020-03-11 13:13:36 +01:00
committed by GitHub
parent a3dedb68d1
commit 833794feef
2 changed files with 30 additions and 0 deletions

View 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 }}'