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

[wip] On disk fake client #1729

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Apr 29, 2024

wire up a fake client using a must-gather style directory.

Needs more tests prior to merge.

My gosh, who made this format. We should clearly fix it...

/assign @ingvagabund

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 29, 2024
@openshift-ci openshift-ci bot requested a review from soltysh April 29, 2024 20:24
Copy link
Contributor

openshift-ci bot commented Apr 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 29, 2024
@deads2k deads2k force-pushed the on-disk-fake-client branch 2 times, most recently from 87ae1d1 to e1a3b51 Compare April 29, 2024 20:57
@@ -123,6 +125,24 @@ func (mrt *manifestRoundTripper) RoundTrip(req *http.Request) (*http.Response, e
// TODO handle label and field selectors
returnBody, returnErr = mrt.list(requestInfo)

case "watch":
// our watches do nothing. We keep the connection alive (I think), but nothing else.
Copy link
Member

Choose a reason for hiding this comment

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

Listing all file based resources at start up can be interpreted either like creating or updating all of these for the first time. The code should generate corresponding create, resp. update events here for all the listable items. So the registered even handlers can react. Does the current roundtrip watch implementation lead to generating the events?

Copy link
Contributor

openshift-ci bot commented May 10, 2024

@deads2k: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants