Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve test script #49

Merged
merged 1 commit into from
Apr 17, 2018
Merged

Conversation

YujiOshima
Copy link
Contributor

Not to use a const value for the number of pods.

Signed-off-by: YujiOshima yuji.oshima0x3fd@gmail.com

Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>
@@ -54,11 +54,13 @@ cd ${GO_DIR}
./deploy.sh

TIMEOUT=60
until kubectl get pods -n katib | grep 1/1 | [[ $(wc -l) -eq 7 ]]; do
PODNUM=$(kubectl get pods -n katib | grep -v NAME | wc -l)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid grep like this but I don't think it matters much kubectl get pods -o jsonpath='{.items[*].metadata.name}' | wc -w

@jose5918
Copy link

/lgtm

@YujiOshima
Copy link
Contributor Author

@jose5918 Thanks!

@YujiOshima
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jose5918, YujiOshima

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 6c8e257 into kubeflow:master Apr 17, 2018
@YujiOshima YujiOshima deleted the improve-test branch April 24, 2018 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants