kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
108.65k stars 38.97k forks source link

GetLogs doesn't have support for Reactors in fake client #117144

Open mjnovice opened 1 year ago

mjnovice commented 1 year ago

What would you like to be added?

GetLogs should be supported just like any other entity and verb in fakeClient, so that we can mock the GetLogs for unit test. https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/fake_pod_expansion.go#L66

Why is this needed?

Allows for unit testing of GetLogs function

pacoxu commented 1 year ago

/sig api-machinery

cici37 commented 1 year ago

/help wanted If there is a PR raised, we would be happy to review. However, we currently don't have resource for this. :) /triage accepted

gdhuper commented 1 year ago

@mjnovice I am interested in working on this. Can you provide a little more context on this? Specifically what do you mean by Reactors? (still very new to this codebase)

k8s-triage-robot commented 1 month ago

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

BenTheElder commented 2 weeks ago

/help /triage accepted

k8s-ci-robot commented 2 weeks ago

@BenTheElder: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to [this](https://github.com/kubernetes/kubernetes/issues/117144): >/help >/triage accepted Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.