Skip to content

Conversation

@YujiOshima
Copy link
Contributor

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

Signed-off-by: YujiOshima [email protected]

Signed-off-by: YujiOshima <[email protected]>

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