@when('etcd.available')
def etcd_data_change(etcd):
    ' Etcd scale events block master reconfiguration due to the\n        kubernetes-master.components.started state. We need a way to\n        handle these events consistenly only when the number of etcd\n        units has actually changed '
    connection_string = etcd.get_connection_string()
    if data_changed('etcd-connect', connection_string):
        remove_state('kubernetes-master.components.started')
Etcd scale events block master reconfiguration due to the
kubernetes-master.components.started state. We need a way to
handle these events consistenly only when the number of etcd
units has actually changed
@when('etcd.available')
def etcd_data_change(etcd):
    ' Etcd scale events block master reconfiguration due to the\n        kubernetes-master.components.started state. We need a way to\n        handle these events consistenly only when the number of etcd\n        units has actually changed '
    connection_string = etcd.get_connection_string()
    if data_changed('etcd-connect', connection_string):
        remove_state('kubernetes-master.components.started')