Skip to content

Wrapping client interface #1

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

tgoodwin
Copy link
Owner

@tgoodwin tgoodwin commented May 7, 2024

No description provided.

Poor12 and others added 13 commits May 24, 2023 09:43
…ot/cherry-pick-2343-to-release-0.15

[release-0.15] ✨Fix logs in unstructured client
* Fix unspecified KindsFor version

* Dont allocate empty list

Co-authored-by: Alvaro Aleman <alvaroaleman@users.noreply.github.com>

* Test all four relevant interface methods, and do not assert count

* Attempt to format correctly in web editor

* Remove request count asserts

* Remove non-version item asserts

---------

Co-authored-by: Amund Tenstad <github@amund.io>
Co-authored-by: Alvaro Aleman <alvaroaleman@users.noreply.github.com>
…onflicts

The fake client of subresource is unable to correctly handle the case of
resource version conflict when updating. The phenomenon is that it did
not return a 409 status error.

Signed-off-by: iiiceoo <iiiceoo@foxmail.com>
…ot/cherry-pick-2365-to-release-0.15

[release-0.15] 🐛 fakeClient.Status().Update(...) cannot recognize resource version conflicts
…ernetes-sigs#2373)

* fix: hasLabels and matchingLabels step on each other

* remove testcase with invalid input

---------

Co-authored-by: Shanshan.Ying <shanshan.ying@apecloud.com>
This broke when we added the HTTP client, because the user-agent gets
set by a roundtripper that is constructed within `rest.HTTPClientFor`.
As a result, we have to default it before we do that. Currently, it ends
up being defaulted to `Go-http-client` which is not very useful.
[release-0.15] 🐛 Fix Defaulting of the User Agent
…-panic-backport-to-v0.15

[release-0.15] 🐛 Fix TerminalError(nil).Error() panic
As the function is currently written without a return, for an
unstructured object which is successfully unmashalled, it will fall
through to the subsequent lines and fail to decode properly.

Add return statement to successful unstructured decode.

Signed-off-by: Leah Leshchinsky <lleshchi@redhat.com>
…ot/cherry-pick-2433-to-release-0.15

[release-0.15]  🐛 Add missing return statement in the webhook admissions func
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.

8 participants