-
Notifications
You must be signed in to change notification settings - Fork 554
Add decode plugin #5038
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
base: master
Are you sure you want to change the base?
Add decode plugin #5038
Conversation
A kubectl plugin that decodes base64-encoded values in Kubernetes secrets. Features: - Multiple output formats (JSON, YAML, table) - Namespace and context support - Automatic secret listing - Comprehensive error handling
|
🤖 Beep beep! I’m a robot speaking on behalf of @ahmetb. 🤖 Thanks for submitting your kubectl plugin to Krew! In the meanwhile, here are a few tips to make your plugin manifest better:
Thanks for your patience! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: crackmac The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Welcome @crackmac! |
|
view-secret plugin already does this I think. |
I didn't see that plugin. It does look like it covers the same functionality. |
Plugin Information
Plugin Name: decode
Repository: https://github.com/crackmac/kubectl-decode-plugin
Version: v0.1.0
Description
kubectl-decodeis a plugin that decodes base64-encoded values in Kubernetes secrets, making them easily readable.Features
-n/--namespaceflag--contextflag for multi-cluster environments--helpdocumentationExample Usage
```bash
Basic usage
kubectl decode my-secret
With namespace and output format
kubectl decode my-secret -n kube-system -o yaml
Table format
kubectl decode my-secret -o table
```
Testing
I have tested the plugin locally using:
```bash
kubectl krew install --manifest=plugins/decode.yaml
kubectl decode version # Shows: 0.1.0
kubectl decode --help # Shows comprehensive help
```
The plugin installs and runs successfully on macOS (arm64 and amd64) and Linux platforms.
Checklist
Thank you for reviewing this submission!