Skip to content

Conversation

lqlive
Copy link
Contributor

@lqlive lqlive commented Sep 12, 2025

Base on #1662
@tg123 Hi ,This is my initial implementation. Could you help me see how much it differs from your ideas?

During my implementation, I thought of two issues:

1.Can the ListNamespacedPodWithHttpMessagesAsync method be set as protected or private to prevent external access?

2.Replace the tuple (WatchEventType, V1Pod) in IAsyncEnumerable<(WatchEventType, V1Pod)> with a new type, such as:

public readonly struct ResourceEvent<TResource>(EventType eventType, TResource value, TResource oldValue = default!)
{
    public EventType EventType { get; } = eventType;
    public TResource OldValue { get; } = oldValue;
    public TResource Value { get; } = value;
}

public enum EventType
{
    Unknown = 0,
    Created = 1,
    Updated = 2,
    Deleted = 3
}

lqlive and others added 21 commits April 18, 2025 17:44
- Reintroduced Watcher.cs and WatcherExt.cs in the AOT project.
- Added FilterParameters and GetParameterValueForWatchCall methods in ParamHelper to support filtering parameters and handling watch calls.
- Updated OperationsExtensions template to include new watch methods with appropriate XML documentation for parameters.

This update improves the Kubernetes client by enabling watch capabilities for operations, enhancing the overall functionality.
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2025
Copy link

linux-foundation-easycla bot commented Sep 12, 2025

CLA Missing ID CLA Not Signed

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lqlive
Once this PR has been reviewed and has the lgtm label, please assign tg123 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 12, 2025
@lqlive lqlive closed this by deleting the head repository Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants