Skip to content

docs(examples): add watch README guide and example index - #2812

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes-client:masterfrom
anisayakmitra-in:docs/watch-examples-guide
Nov 27, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes-client:masterfrom
anisayakmitra-in:docs/watch-examples-guide

Conversation

@anisayakmitra-in

@anisayakmitra-in anisayakmitra-in commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind documentation

What this PR does / why we need it:

examples/watch contains example scripts and guides (pod_namespace_watch.py, watch_recovery.py, and imeout-settings.md) for real-time resource streaming with kubernetes.watch.Watch and DynamicClient, but lacked a directory README.md introducing the examples and indexing their usage patterns.

This PR adds examples/watch/README.md with:

  • An overview of Kubernetes watch event streaming (ADDED, MODIFIED, DELETED, BOOKMARK, ERROR) without polling.
  • Setup and execution instructions from the repository root.
  • A categorized index of the example scripts and the timeout reference document.
  • Key architectural patterns and best practices (tracking
    esourceVersion, enabling watch bookmarks, handling HTTP 410 Gone, and clean connection shutdown with w.stop()).
  • Cross-references to upstream Kubernetes API concepts and the root examples/README.md.

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

elease-note NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

None

Signed-off-by: ANISAYAK MITRA <266799942+anisayakmitra-in@users.noreply.github.com>
@kubernetes-prow kubernetes-prow Bot added kind/documentation Categorizes issue or PR as related to documentation. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 27, 2026
@kubernetes-prow
kubernetes-prow Bot requested review from roycaihw and yliaog November 27, 2026 18:51
@anisayakmitra-in

Copy link
Copy Markdown
Contributor Author

/release-note-none

@kubernetes-prow kubernetes-prow Bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 27, 2026
@yliaog

yliaog commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

thanks for the PR

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 27, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anisayakmitra-in, yliaog

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

The pull request process is described here

Details 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

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 27, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 1ea8de5 into kubernetes-client:master Nov 27, 2026
10 checks passed
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants