Skip to content

Conversation

@crackmac
Copy link

Plugin Information

Plugin Name: decode
Repository: https://github.com/crackmac/kubectl-decode-plugin
Version: v0.1.0

Description

kubectl-decode is a plugin that decodes base64-encoded values in Kubernetes secrets, making them easily readable.

Features

  • 🔓 Multiple output formats: JSON (default), YAML, and human-readable table
  • 🎯 Namespace support with -n/--namespace flag
  • 🌐 Context support with --context flag for multi-cluster environments
  • 📝 Comprehensive --help documentation
  • ✅ Automatic dependency validation (kubectl, jq)
  • 📋 Auto-list available secrets when no name provided
  • ⚠️ Improved error handling with clear messages

Example 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

  • Plugin follows naming conventions
  • Manifest includes all required fields
  • SHA256 checksums verified
  • Plugin tested locally with Krew
  • Documentation is comprehensive
  • License included (MIT)

Thank you for reviewing this submission!

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
@ahmetb
Copy link
Member

ahmetb commented Nov 11, 2025

🤖 Beep beep! I’m a robot speaking on behalf of @ahmetb. 🤖


Thanks for submitting your kubectl plugin to Krew!
One of the krew-index maintainers will review it soon. Note that the reviews for new plugin submissions may take a few days.

In the meanwhile, here are a few tips to make your plugin manifest better:

  • Make sure your plugin follows the best practices.
  • Eliminate redundant wording form shortDescription (it should be max 50 characters).
  • Try to word wrap your description to 80-character lines (no usage examples, please).

Thanks for your patience!
/kind new-plugin

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: crackmac
Once this PR has been reviewed and has the lgtm label, please assign chriskim06 for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 11, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @crackmac!

It looks like this is your first PR to kubernetes-sigs/krew-index 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/krew-index has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 11, 2025
@ahmetb
Copy link
Member

ahmetb commented Nov 12, 2025

view-secret plugin already does this I think.

@crackmac
Copy link
Author

view-secret plugin already does this I think.

I didn't see that plugin. It does look like it covers the same functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/new-plugin 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.

3 participants