From c33c6e7a0f9b4594bef8161df86af4ba9de68af0 Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Sat, 18 May 2019 09:23:05 +0800 Subject: [PATCH] fix: Update deploy scripts Signed-off-by: Ce Gao --- scripts/v1alpha1/deploy.sh | 11 ++--------- scripts/v1alpha2/deploy.sh | 27 +++++++-------------------- 2 files changed, 9 insertions(+), 29 deletions(-) diff --git a/scripts/v1alpha1/deploy.sh b/scripts/v1alpha1/deploy.sh index 4a079e16931..e620f22df28 100755 --- a/scripts/v1alpha1/deploy.sh +++ b/scripts/v1alpha1/deploy.sh @@ -22,7 +22,7 @@ set -o xtrace SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../.. cd ${SCRIPT_ROOT} -kubectl apply -f manifests/v1alpha1/0-namespace.yaml +kubectl apply -f manifests/v1alpha1 kubectl apply -f manifests/v1alpha1/pv kubectl apply -f manifests/v1alpha1/vizier/db kubectl apply -f manifests/v1alpha1/vizier/core @@ -34,12 +34,5 @@ kubectl apply -f manifests/v1alpha1/vizier/suggestion/hyperband kubectl apply -f manifests/v1alpha1/vizier/suggestion/bayesianoptimization kubectl apply -f manifests/v1alpha1/vizier/suggestion/nasrl kubectl apply -f manifests/v1alpha1/vizier/earlystopping/medianstopping -kubectl apply -f manifests/v1alpha1/studyjobcontroller/crd.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/tfjobsCrd.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/pytorchjobsCrd.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/rbac.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/mcrbac.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/workerConfigMap.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/metricsControllerConfigMap.yaml -kubectl apply -f manifests/v1alpha1/studyjobcontroller/studyjobcontroller.yaml +kubectl apply -f manifests/v1alpha1/studyjobcontroller cd - > /dev/null diff --git a/scripts/v1alpha2/deploy.sh b/scripts/v1alpha2/deploy.sh index 2f1488e4a3e..ad5e6c4205c 100755 --- a/scripts/v1alpha2/deploy.sh +++ b/scripts/v1alpha2/deploy.sh @@ -22,24 +22,11 @@ set -o xtrace SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../.. cd ${SCRIPT_ROOT} -kubectl apply -f manifests/v1alpha2/0-namespace.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/crds.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/rbac.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/mcrbac.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/service.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/secret.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/trialTemplateConfigmap.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/metricsControllerConfigMap.yaml -kubectl apply -f manifests/v1alpha2/katib-controller/katib-controller.yaml -kubectl apply -f manifests/v1alpha2/katib/manager/service.yaml -kubectl apply -f manifests/v1alpha2/katib/manager/deployment.yaml -kubectl apply -f manifests/v1alpha2/katib/manager-rest/service.yaml -kubectl apply -f manifests/v1alpha2/katib/manager-rest/deployment.yaml -kubectl apply -f manifests/v1alpha2/katib/pv/pv.yaml -kubectl apply -f manifests/v1alpha2/katib/pv/pvc.yaml -kubectl apply -f manifests/v1alpha2/katib/db/secret.yaml -kubectl apply -f manifests/v1alpha2/katib/db/deployment.yaml -kubectl apply -f manifests/v1alpha2/katib/db/service.yaml -kubectl apply -f manifests/v1alpha2/katib/suggestion/random/deployment.yaml -kubectl apply -f manifests/v1alpha2/katib/suggestion/random/service.yaml +kubectl apply -f manifests/v1alpha2 +kubectl apply -f manifests/v1alpha2/katib-controller +kubectl apply -f manifests/v1alpha2/katib/manager +kubectl apply -f manifests/v1alpha2/katib/manager-rest +kubectl apply -f manifests/v1alpha2/katib/pv +kubectl apply -f manifests/v1alpha2/katib/db +kubectl apply -f manifests/v1alpha2/katib/suggestion/random cd - > /dev/null