aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-11-02 13:10:06 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-11-02 13:10:06 -0700
commite7f3361c368a4b75d61eb1d149a1d9aa84c567fa (patch)
tree90dc8d9926aa967807ab698f072333d352df2b33
parent89f6723ac3077f6d29f61319b6ae02638a966fdb (diff)
Set default namespace to onap for kubectl
Change-Id: I531b3a902a91c5b5965f4241bc7d85b3b8707ed6 Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--deployment/heat/onap-oom/rancher_vm_entrypoint.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh
index ed1dc886d..aadc81628 100644
--- a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh
+++ b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh
@@ -203,6 +203,8 @@ cd ~
KUBETOKEN=$(echo -n 'Basic '$(echo -n "$CATTLE_ACCESS_KEY:$CATTLE_SECRET_KEY" | base64 -w 0) | base64 -w 0)
+NAMESPACE=onap
+
# create .kube/config
cat > ~/.kube/config <<EOF
apiVersion: v1
@@ -216,6 +218,7 @@ clusters:
contexts:
- context:
cluster: "oom"
+ namespace: "$NAMESPACE"
user: "oom"
name: "oom"
current-context: "oom"
@@ -291,7 +294,7 @@ helm repo list
make all
rsync -avt ~/oom/kubernetes/helm/plugins ~/.helm/
helm search -l | grep local
-helm deploy dev local/onap -f ~/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f ~/integration-override.yaml --namespace onap | tee ~/helm-deploy.log
+helm deploy dev local/onap -f ~/oom/kubernetes/onap/resources/environments/public-cloud.yaml -f ~/integration-override.yaml --namespace $NAMESPACE
helm list