Skip to content

Frontend: Secrets: Added Toggle Switch to filter helm secrets#4412

Merged
illume merged 1 commit intokubernetes-sigs:mainfrom
mudit06mah:helmFilter
Feb 12, 2026
Merged

Frontend: Secrets: Added Toggle Switch to filter helm secrets#4412
illume merged 1 commit intokubernetes-sigs:mainfrom
mudit06mah:helmFilter

Conversation

@mudit06mah
Copy link
Contributor

Summary

This PR adds a toggle switch to hide helm secrets

Related Issue

Fixes #4335

Changes

Changes SecretList() component to include a toggle switch in the header to hide secrets of type helm.sh/release.v1.
(It is turned on by default)

Screenshots (if applicable)

image image

@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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 21, 2026
@illume illume requested a review from Copilot January 21, 2026 12:55
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 for this.

Please check contributing docs for how we do commit messages? Also checks the development docs for the frontend section on how to first check your commit locally?

@illume illume marked this pull request as draft January 21, 2026 12:57
@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 Jan 21, 2026
Copy link
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

This PR adds a toggle switch to the Secrets list view that allows users to hide Helm secrets (secrets with type helm.sh/release.v1). The toggle is enabled by default, filtering out Helm secrets from the list view.

Changes:

  • Modified SecretList() component to include state management for the filter toggle
  • Added a FormControlLabel with Switch component in the header's titleSideActions
  • Implemented filtering logic to exclude helm.sh/release.v1 secrets when toggle is enabled

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mudit06mah mudit06mah force-pushed the helmFilter branch 2 times, most recently from 3315ab3 to 0d06fda Compare January 21, 2026 15:14
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 21, 2026
@mudit06mah
Copy link
Contributor Author

@illume I have created a single atomic commit following the format given in the docs, PR also passes all tests:
image

Ready to merge :)
P.S.: Would like to apologize again for the ruckus I caused earlier.

@mudit06mah mudit06mah requested a review from illume January 22, 2026 06:12
@mudit06mah
Copy link
Contributor Author

@illume Please review this PR again as I have made the necessary changes.

@mudit06mah mudit06mah changed the title Fronted: Secrets: Added Toggle Switch to filter helm secrets Frontend: Secrets: Added Toggle Switch to filter helm secrets Feb 2, 2026
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2026
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 4, 2026
@mudit06mah mudit06mah marked this pull request as ready for review February 4, 2026 12:11
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 4, 2026
@mudit06mah mudit06mah marked this pull request as ready for review February 5, 2026 12:12
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 5, 2026
@mudit06mah
Copy link
Contributor Author

mudit06mah commented Feb 5, 2026

Sorry for so many pushes,
@illume Can you Please Review this again? Thankyou!

@mudit06mah
Copy link
Contributor Author

@illume Can you Please Review this? 👾

Copy link
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 14 out of 14 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

I think it’s a good idea to implement the suggestions mentioned in the comment the way you think is best. When that’s done we can get a few more perspectives on it.

(It seems like you have mostly consensus with the reviewer but one item left to find agreement on)

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 12, 2026
@mudit06mah
Copy link
Contributor Author

@illume I have made the changes suggested by copilot, PTAL

Copy link
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 14 out of 14 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Can you please check out some of the open review comments? It could be a couple of them are pointing out bugs.

@mudit06mah
Copy link
Contributor Author

@illume I have made the changes suggested by copilot, can you please review this again?

Copy link
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 14 out of 14 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@illume
Copy link
Contributor

illume commented Feb 12, 2026

I think your implementation is quite good now. Can you please ask in the headlamp channel on the Kubernetes slack for feedback?

@mudit06mah
Copy link
Contributor Author

Can you please ask in the headlamp channel on the Kubernetes slack for feedback?

Sure! 👾

Copy link

@kkrypt0nn kkrypt0nn left a comment

Choose a reason for hiding this comment

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

Looks good

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, kkrypt0nn, mudit06mah

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 Feb 12, 2026
@illume illume merged commit ed9749a into kubernetes-sigs:main Feb 12, 2026
11 of 12 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. 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.

Ability to hide/filter out Helm release secrets

4 participants