feat: add kubernetes plugin for kubectl, helm, stern, k9s#2
Open
feat: add kubernetes plugin for kubectl, helm, stern, k9s#2
Conversation
e6fdca8 to
3f57f46
Compare
Kubernetes plugin: - kubectl, helm, stern, k9s support - Base64-encoded kubeconfig stored in 1Password SOPS plugin: - sops, helm support - Age secret key provisioning
3f57f46 to
3a1d9c8
Compare
Helm with helm-secrets plugin now uses both SOPS and Kubernetes
credentials via cross-plugin reference. This enables helm to:
- Decrypt secrets using SOPS age key (SOPS_AGE_KEY env var)
- Connect to Kubernetes clusters (KUBECONFIG env var)
Removed ForCommand("secrets") auth restriction since helm always
needs kubeconfig for cluster operations.
Helmfile transparently calls helm-secrets during sync/lint/apply, so it needs the SOPS_AGE_KEY injected via op plugin run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new kubernetes plugin that provisions kubeconfig files for Kubernetes CLI tools.
Supported executables
How it works
KUBECONFIGenvironment variable pointing to the temp file~/.kube/configTest plan
make kubernetes/validatepassesmake kubernetes/buildsucceedsgo test ./plugins/kubernetes/...)go test ./...)