Skip to content

feat: add --format selector with real Kubernetes ExecCredential output#39

Merged
André L. (WipeAir) merged 1 commit into
mainfrom
claude/validate-execcredential
Jul 20, 2026
Merged

feat: add --format selector with real Kubernetes ExecCredential output#39
André L. (WipeAir) merged 1 commit into
mainfrom
claude/validate-execcredential

Conversation

@WipeAir

Copy link
Copy Markdown
Member

Replaces the boolean `--all` toggle with a `--format` selector offering three output modes: `token` (default, bare token), `json` (the full JSON document, unchanged), and `exec-credential`. The new `exec-credential` mode emits a genuine Kubernetes `client.authentication.k8s.io` ExecCredential envelope (`apiVersion`/`kind`/`status.token`) that honors `--token-type` and echoes the apiVersion from `KUBERNETES_EXEC_INFO` (falling back to `v1`), so it works as a real kubectl exec-credential drop-in — the previous flat `--all` output would have been rejected by kubectl. `--all` is retained as a deprecated alias for `--format=json`, so existing 0.9.0 users are unaffected. Adds unit/config/cmd tests for the new writer, apiVersion resolution, format parsing, and the `--all` alias, and rewrites the kubectl section plus flags table in the README.

Replaces the boolean --all toggle with a --format selector
(token|json|exec-credential). Adds a genuine Kubernetes ExecCredential
envelope honoring --token-type and echoing KUBERNETES_EXEC_INFO
apiVersion. Keeps --all as a deprecated alias for --format=json.
@WipeAir
André L. (WipeAir) merged commit 3353b68 into main Jul 20, 2026
9 of 10 checks passed
@WipeAir
André L. (WipeAir) deleted the claude/validate-execcredential branch July 20, 2026 21:49
@abi-jarvis abi-jarvis Bot mentioned this pull request Jul 20, 2026
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.

1 participant