Skip to content

Commit

Permalink
Fix CI failures (kubeflow#27)
Browse files Browse the repository at this point in the history
* prow_config: Add

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* prow_config: Update

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* scripts: Rename

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* run-tests: Fix path bugs

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* run-tests: Fix bugs about too many slashes

Ref https://stackoverflow.com/questions/9366816/sed-unknown-option-to-s

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* run-tests: Add serviceaccount in GKE

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* run-tests: Add namespace

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* run-tests: Fix issues in GKE

Signed-off-by: Ce Gao <gaoce@caicloud.io>
  • Loading branch information
gaocegege authored and k8s-ci-robot committed Apr 13, 2018
1 parent 20ec6a0 commit af2c2fa
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
6 changes: 6 additions & 0 deletions prow_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file configures the workflows to trigger in our Prow jobs.
# see kubeflow/testing/py/run_e2e_workflow.py
workflows:
- app_dir: kubeflow/hp-tuning/test/workflows
component: workflows
name: e2e
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 11 additions & 6 deletions test/script/run-tests.sh → test/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@ GO_DIR=${GOPATH}/src/github.com/${REPO_OWNER}/${REPO_NAME}

echo "Activating service-account"
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}

echo "Configuring kubectl"
gcloud --project ${PROJECT} container clusters get-credentials ${CLUSTER_NAME} \
--zone ${ZONE}

kubectl config set-credentials temp-admin --username=admin --password=$(gcloud container clusters describe ${CLUSTER_NAME} --format="value(masterAuth.password)" --zone=${ZONE})
kubectl config set-context temp-context --cluster=$(kubectl config get-clusters | grep ${CLUSTER_NAME}) --user=temp-admin
kubectl config use-context temp-context

echo "Install Katib "
sed -i -e "s/image: katib\/vizier-core/image: ${REGISTRY}\/${REPO_NAME}\/vizier-core:${VERSION}/" manifests/vizier/core/deployment.yaml
sed -i -e "s/image: katib\/suggestion-random/image: ${REGISTRY}\/${REPO_NAME}\/suggestion-random:${VERSION}/" manifests/suggestion/random/deployment.yaml
sed -i -e "s/image: katib\/suggestion-grid/image: ${REGISTRY}\/${REPO_NAME}\/suggestion-grid:${VERSION}/" manifests/suggestion/grid/deployment.yaml
sed -i -e "s/image: katib\/suggestion-hyperband/image: ${REGISTRY}\/${REPO_NAME}\/suggestion-hyperband:${VERSION}/" manifests/suggestion/hyperband/deployment.yaml
sed -i -e "s/image: katib\/dlk-manager/image: ${REGISTRY}\/${REPO_NAME}\/dlk-manager:${VERSION}/" manifests/dlk/deployment.yaml
sed -i -e "s/image: katib\/katib-frontend/image: ${REGISTRY}\/${REPO_NAME}\/katib-frontend:${VERSION}/" manifests/modeldb/frontend/deployment.yaml
sed -i -e "s@image: katib\/vizier-core@image: ${REGISTRY}\/${REPO_NAME}\/vizier-core:${VERSION}@" manifests/vizier/core/deployment.yaml
sed -i -e "s@image: katib\/suggestion-random@image: ${REGISTRY}\/${REPO_NAME}\/suggestion-random:${VERSION}@" manifests/vizier/suggestion/random/deployment.yaml
sed -i -e "s@image: katib\/suggestion-grid@image: ${REGISTRY}\/${REPO_NAME}\/suggestion-grid:${VERSION}@" manifests/vizier/suggestion/grid/deployment.yaml
sed -i -e "s@image: katib\/suggestion-hyperband@image: ${REGISTRY}\/${REPO_NAME}\/suggestion-hyperband:${VERSION}@" manifests/vizier/suggestion/hyperband/deployment.yaml
sed -i -e "s@image: katib\/dlk-manager@image: ${REGISTRY}\/${REPO_NAME}\/dlk-manager:${VERSION}@" manifests/dlk/deployment.yaml
sed -i -e "s@image: katib\/katib-frontend@image: ${REGISTRY}\/${REPO_NAME}\/katib-frontend:${VERSION}@" manifests/modeldb/frontend/deployment.yaml
cd ${GO_DIR}
./deploy.sh

Expand Down

0 comments on commit af2c2fa

Please sign in to comment.