Skip to content
Snippets Groups Projects
Commit 162a5347 authored by garciadeblas's avatar garciadeblas Committed by Mark Beierl
Browse files

Fix bug 1124: K8s added to juju after k8s has been initialized


Change-Id: I757eb90f35db1af95081c3e3dd3ffef30ff98197
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 11a6fedc
No related branches found
No related tags found
No related merge requests found
......@@ -425,13 +425,13 @@ function juju_createcontroller() {
sg lxd -c "juju bootstrap --bootstrap-series=xenial $OSM_VCA_CLOUDNAME $OSM_STACK_NAME"
fi
[ $(juju controllers | awk "/^${OSM_STACK_NAME}[\*| ]/{print $1}"|wc -l) -eq 1 ] || FATAL "Juju installation failed"
if [ -n "$KUBERNETES" ]; then
cat .kube/config | juju add-k8s $OSM_VCA_K8S_CLOUDNAME --controller $OSM_STACK_NAME
fi
juju controller-config features=[k8s-operators]
}
function juju_addk8s() {
cat .kube/config | juju add-k8s $OSM_VCA_K8S_CLOUDNAME --controller $OSM_STACK_NAME
}
function juju_createproxy() {
check_install_iptables_persistent
......@@ -1162,6 +1162,11 @@ EOF
track docker_swarm
fi
if [ -n "$KUBERNETES" ]; then
juju_addk8s
track juju_addk8s
fi
[ -z "$DOCKER_NOBUILD" ] && generate_docker_images
track docker_build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment