Skip to content

frontend: Event: Put hooks back into the class for compatibility#5656

Draft
sniok wants to merge 1 commit into
kubernetes-sigs:mainfrom
sniok:revert-events-methods-change
Draft

frontend: Event: Put hooks back into the class for compatibility#5656
sniok wants to merge 1 commit into
kubernetes-sigs:mainfrom
sniok:revert-events-methods-change

Conversation

@sniok
Copy link
Copy Markdown
Contributor

@sniok sniok commented May 14, 2026

Places hook back as static methods that were moved recently, addresses #5652

#5655 should be merged first, then this PR should be updated with new snapshot and only then merged.

@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 May 14, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sniok

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 14, 2026
@k8s-ci-robot k8s-ci-robot requested review from skoeva and yolossn May 14, 2026 19:01
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 14, 2026
@sniok sniok requested a review from Copilot May 14, 2026 19:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restores useEventListForClusters and useEventWarningList as static members of the Event class so that they remain reachable via window.pluginLib.K8s.event.default, addressing the plugin API regression reported in #5652. Depends on #5655 being merged first to refresh the pluginLib snapshot.

Changes:

  • Re-attach the two event hooks as static class members on Event.

Comment thread frontend/src/lib/k8s/event.ts Outdated
@sniok sniok force-pushed the revert-events-methods-change branch from 2a02223 to 2932d55 Compare May 14, 2026 19:28
@sniok sniok requested a review from Copilot May 14, 2026 19:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants