Add registry action to the kubernetes-worker layer

This commit is contained in:
Jacek N
2017-03-14 15:40:09 +00:00
committed by George Kraft
parent ca4afd8773
commit ebd2f88f6b
7 changed files with 320 additions and 3 deletions

View File

@@ -203,6 +203,11 @@ def install_cni_plugins():
hookenv.log(install)
check_call(install)
# Used by the "registry" action. The action is run on a single worker, but
# the registry pod can end up on any worker, so we need this directory on
# all the workers.
os.makedirs('/srv/registry', exist_ok=True)
set_state('kubernetes-worker.cni-plugins.installed')