Skip to content

frontend: Remove unused code#4360

Merged
illume merged 1 commit intokubernetes-sigs:mainfrom
skoeva:unused
Jan 16, 2026
Merged

frontend: Remove unused code#4360
illume merged 1 commit intokubernetes-sigs:mainfrom
skoeva:unused

Conversation

@skoeva
Copy link
Contributor

@skoeva skoeva commented Jan 15, 2026

This change removes the unused overrideKubeObject function from the frontend.

@skoeva skoeva self-assigned this Jan 15, 2026
@skoeva skoeva added frontend Issues related to the frontend quality Related to improving the quality of the app labels Jan 15, 2026
@k8s-ci-robot k8s-ci-robot added 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 Jan 15, 2026
@skoeva skoeva requested a review from Copilot January 15, 2026 15:47

This comment was marked as outdated.

@joaquimrocha joaquimrocha requested a review from sniok January 15, 2026 18:26
@joaquimrocha
Copy link
Contributor

I would double check that this code was not importable by plugins. But I think @sniok can do a better job at reviewing this one.

@skoeva
Copy link
Contributor Author

skoeva commented Jan 15, 2026

I did catch that makeJobStatusLabel is not imported but copied in the keda plugin, will take a look through the community plugins. The ones in the plugin repo are clean

@joaquimrocha
Copy link
Contributor

I did catch that makeJobStatusLabel is not imported but copied in the keda plugin, will take a look through the community plugins. The ones in the plugin repo are clean

I think you just need to check if importing any of that code is at all possible. If it is, you should assume anyone can be using it even in a non-public way and we'd be breaking things for them.
If it's not possible to import then we're not breaking things and we can have this one.

@skoeva
Copy link
Contributor Author

skoeva commented Jan 16, 2026

@joaquimrocha Got it, that pretty much only leaves overrideKubeObject since the rest should be published to the npm package; will update now

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 16, 2026
@illume
Copy link
Contributor

illume commented Jan 16, 2026

I can't see overrideKubeObject used anywhere on public github https://github.com/search?q=overrideKubeObject&type=code

Copy link
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

🎉 thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: illume, skoeva

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 16, 2026
@illume
Copy link
Contributor

illume commented Jan 16, 2026

btw. I feel if we can't find any users on github/gitlab/google at all, I think it's fine to mark them deprecated, mention them in the release notes that we will remove them in after several releases(6 months or so). We can even ask a few times in our slack channel. If no one gets back to us... I feel it's probably safe at that point to remove them. Something to consider.

@illume illume merged commit 85e434d into kubernetes-sigs:main Jan 16, 2026
11 of 12 checks passed
@skoeva skoeva deleted the unused branch January 19, 2026 14:53
@ashu8912 ashu8912 added this to the v0.40.0 milestone Feb 3, 2026
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. frontend Issues related to the frontend quality Related to improving the quality of the app 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.

5 participants