Add support to check version of etcadm/nodeadm before a machine is created/ deleted and install the expected version from /var/cache/ssh-provider/ if necessary. Expected version is obtained from MachineSpec.
This allows upgrade verb to call delete and create on machine while using the versions specified in the MachineSpec
Sample output
when expected versions are already installed
doing version check for etcdadm existing version v0.0.1-alpha expected version v0.0.1-alpha
found expected verision for etcdadm
doing version check for nodeadm existing version v0.0.1-alpha expected version v0.0.1-alpha
found expected verision for nodeadm
when expected version is not available
coreos-puneet-212-10-105-16-41platform9 ~ # /opt/bin/cctl create machine --ip 10.105.16.41 --role master
2018/08/07 21:09:38 Not able to verify machine SSH identity: No public keys given. Continuing...
doing version check for etcdadm existing version v0.0.1-alpha expected version v0.0.1-alpha
found expected verision for etcdadm
looking for expected version v0.0.1-alpha for nodeadm in cache
installing nodeadm binary from /var/cache/ssh-provider/nodeadm/v0.0.1-alpha/nodeadm
Add support to check version of
etcadm/nodeadm
before a machine is created/ deleted and install the expected version from/var/cache/ssh-provider/
if necessary. Expected version is obtained fromMachineSpec
. This allowsupgrade
verb to call delete and create on machine while using the versions specified in theMachineSpec
Sample output
when expected versions are already installed
when expected version is not available