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

Uncached client for instance admission webhook #1516

Merged
merged 2 commits into from
May 14, 2020

Conversation

zen-dog
Copy link
Contributor

@zen-dog zen-dog commented May 13, 2020

Summary:
we've seen increased flakiness lately with some ITs e.g. terminal-failed-job and dependencies-hash where a previously created OperatorVersion is not observed by the instance admission webhook. This PR switches to an uncached client for the IAW which should alleviate the problem.

Signed-off-by: Aleksey Dukhovniy alex.dukhovniy@googlemail.com

Summary:
we've seen an increased flakiness lately with some ITs e.g. `terminal-failed-job` and `dependencies-hash` where a previously created `OperatorVersion` is not observed by the instance admission webhook. This PR switches to an uncached client for the IAW which should alleviate the problem.

Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
@zen-dog zen-dog force-pushed the ad/uncached-webhook-client branch from 2fa9135 to c6eaa8b Compare May 13, 2020 12:17
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

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

added some encapsulation thoughts... I'm not sure how it might affect testing.. but seems like an improvement... regardless, it is an opinion

The solution provided seems reasonable

cmd/manager/main.go Outdated Show resolved Hide resolved
Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
@zen-dog zen-dog merged commit cf7ce86 into master May 14, 2020
@zen-dog zen-dog deleted the ad/uncached-webhook-client branch May 14, 2020 09:43
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.

None yet

3 participants