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

Check that kube-dns is healthy before running tests #1260

Merged
merged 5 commits into from
Oct 30, 2019

Conversation

andresmgot
Copy link
Contributor

@andresmgot andresmgot commented Oct 29, 2019

The goal of this PR is to avoid errors like https://circleci.com/gh/kubeapps/kubeapps/11173

Could not resolve host: kubeapps-ci.kubeapps

I have added a check that waits for all the endpoints to be ready before running the tests. Additionaly, I have added a retry so if the first test execution fails, it retries once.

Last 7 executions of the tests don't present that issue so this should be fixed.

@andresmgot andresmgot changed the title [WIP] Check that kube-dns is healthy before running tests Check that kube-dns is healthy before running tests Oct 29, 2019
# Wait for Kubeapps Jobs
k8s_wait_for_job_completed kubeapps apprepositories.kubeapps.com/repo-name=stable
echo "Job apprepositories.kubeapps.com/repo-name=stable ready"

echo "All deployments ready. PODs:"
kubectl get pods -n kubeapps -o wide

# DEBUG
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to leave this in?

Copy link
Contributor Author

@andresmgot andresmgot Oct 30, 2019

Choose a reason for hiding this comment

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

nope, I forgot to send the last commit cleaning up

Andres Martinez Gotor and others added 2 commits October 30, 2019 11:08
@andresmgot andresmgot merged commit 16830b7 into vmware-tanzu:master Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants