@when('kubernetes-master.snaps.installed')
def set_app_version():
    ' Declare the application version to juju '
    version = check_output(['kube-apiserver', '--version'])
    hookenv.application_version_set(version.split(b' v')[(- 1)].rstrip())
Declare the application version to juju
@when('kubernetes-master.snaps.installed')
def set_app_version():
    '  '
    version = check_output(['kube-apiserver', '--version'])
    hookenv.application_version_set(version.split(b' v')[(- 1)].rstrip())