Skip to content

feat: add --kubectl-plugin flag#7

Merged
sgargel merged 3 commits into
mainfrom
feat/kubectl-plugin
Jun 18, 2026
Merged

feat: add --kubectl-plugin flag#7
sgargel merged 3 commits into
mainfrom
feat/kubectl-plugin

Conversation

@sgargel

@sgargel sgargel commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Adds --kubectl-plugin= flag that creates an additional kubectl- symlink alongside the normal one, enabling the installed binary to be discovered by kubectl as a plugin (e.g. --kubectl-plugin=oidc_login for int128/kubelogin).

sgargel and others added 3 commits June 18, 2026 12:52
…ectl plugins

Adds --kubectl-plugin=<name> flag that creates an additional kubectl-<name>
symlink alongside the normal one, enabling the installed binary to be discovered
by kubectl as a plugin (e.g. --kubectl-plugin=oidc_login for int128/kubelogin).

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- chmod +x in the already-installed early-return path now silently
  ignores permission errors (binary was installed via sudo, re-run
  without sudo should not crash)
- dry-run block now uses if/fi + return 0 instead of [[ ]] &&, which
  was leaving exit code 1 when KUBECTL_PLUGIN was unset

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@sgargel sgargel merged commit c178d58 into main Jun 18, 2026
1 check passed
@sgargel sgargel deleted the feat/kubectl-plugin branch June 18, 2026 12:09
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