Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "Toggle Decode" only implemented for Describe #3039

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nagytiboradam
Copy link
Contributor

Secret decode toggling is only implemented for describe action, for yaml action it's not, so this change would limit it to the former.
Would it make sense to implement decode toggling for yaml too?

@placintaalexandru
Copy link
Contributor

Hello @nagytiboradam

I wrote that IsDecodable part. It was meant to allow the user to view, if possible, everything that could be base64 decoded.

To answer your questions:

  1. I do not see any purpose with && v.title == describeAction. In the future we may have other base64 encoded resources that users may want to see the values for and the command may not be describe, but something else.
  2. I do not think it makes sense to implement decode toggling for yaml (and here I'll be very specific with my use case): I want to see the yaml to copy it to a file and apply it in another namespace, so for secrets I want to see the yaml with base64 values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants