cluster-api-provider-microvm
cluster-api-provider-microvm copied to clipboard
Upgrading from CAPMVM 0.4.0 to 0.7.0 requires updates to the cluster objects
What happened: I did update to flintlock v0.2.0 and capmvm v0.7.0 from capmvm v0.4.0
The schema did change in a few places and updates to my existing cluster templates and cluster objects in git were required.
From the single sshPublicKey to sshPublicKeys. I used these commands :
- Remove lutz@dellbook on separate lines
$ sed -i 's/^ *lutz@dellbook//' clusters/management/clusters/*.yaml
- Match & replace sshPublicKey with sshPublicKeys
$ sed -i -e 's/^ sshPublicKey: \(.*\)/ sshPublicKeys:\n - user: root\n authorizedKeys:\n - \1/' clusters/management/clusters/*.yaml
- Remove mountpoint entries for the rootVolumes
$ sed -i '/^ *mountPoint:/d' ~/git/demo3-repo/clusters/management/clusters/*.yaml
Updating CAPI templates : - sshPublicKeys
$ sed -i -e 's/^ sshPublicKey: \(.*\)/ sshPublicKeys:\n - user: root\n authorizedKeys:\n - \1/' capmvm-*.yaml
- Provider-id
$ sed -i 's#provider-id:.*#provider-id: "microvm://{{ ds.meta_data.vm_host }}/{{ ds.meta_data.instance_id }}"#' capmvm-*.yaml
- Mountpoint issue
$ sed -i '/^ *mountPoint:/d'
It might be helpful for others that face the same situation.
This is not a bug, but I can't remove that label.
🙌 thanks lutz, i'll update the labels