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

Use DynamicRESTMapper to reload REST mappings when types are not found. #663

Merged
merged 4 commits into from
Jul 29, 2019

Conversation

jbarrick-mesosphere
Copy link
Member

What type of PR is this?

/kind bug

What this PR does / why we need it:

We see some flakes because the default DiscoveryRESTMapper caches the REST mapping and never reloads it. This causes some races if types are not available when a client is initialized.

Which issue(s) this PR fixes:

Fixes #650

Special notes for your reviewer:

I copied this fix from the PR/issue here: kubernetes-sigs/controller-runtime#321

I'm not sure the proper way to cite it though.

Does this PR introduce a user-facing change?:

NONE

Copy link
Contributor

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

👏

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.

Great stuff.... the left over question is if this should be used in kudo in addition to it's use in testing.

@kensipe kensipe merged commit 704aa27 into kudobuilder:master Jul 29, 2019
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.

Creating of mycrd failed in tests (flake)
3 participants