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

Update API server for tests #1034

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Update API server for tests #1034

merged 1 commit into from
Nov 7, 2019

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Nov 6, 2019

What this PR does / why we need it:
Kubernetes api server had a race back in 1.13 kubernetes/kubernetes#51353 and we're still seeing this in our tests because we're using api-server from 1.13.1 in tests. We run tests in docker and we use tools provided by kubebuilder release. We depend on 1.0.8 which is kube 1.13.1. By going to 2.X we;re at least moving to 1.15

I looked into ditching kubebuilder altogether because we're really just using api server and etcd but it would be a bit more work :) we could do it as follow-up if people find it meaningful.

If tests locally start to fail for you after this PR, it's because you need to update api server locally as well if you're not running tests inside docker.'

Oh and this is just first step of the fix - the real will be to actually push the golang 1.13 images to docker hub. I'll do it when this one is merged.

Fixes #683

@@ -7,12 +7,11 @@ status:
kind: ProwJob
# InitialNamesAccepted will change from False -> True once the CRD is ready.
conditions:
- message: no conflicts found
reason: NoConflicts
- type: NonStructuralSchema
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a list and we need to assert the whole list. Since some version of kubernetes, this new condition appeared so it had to be added.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@alenkacz
Copy link
Contributor Author

alenkacz commented Nov 6, 2019

btw. it's expected that this is failing because the mismatch of api server version. I won't merge before this turns green (which will when I push the image)

Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

Assuming it's green - 🚢 !

@alenkacz alenkacz merged commit ca05970 into master Nov 7, 2019
@alenkacz alenkacz deleted the av/update-api-server branch November 7, 2019 13:09
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.

Flaky test "0-length response with status code: 200 and content type: "
4 participants