Skip to content

Commit

Permalink
Add saconfig plugin
Browse files Browse the repository at this point in the history
The saconfig plugin generates a kubeconfig file for authenticating
as a service account.

Signed-off-by: Lars Kellogg-Stedman <[email protected]>
  • Loading branch information
larsks committed Nov 30, 2024
1 parent 00893d1 commit 6105bdb
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions plugins/saconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: saconfig
spec:
homepage: https://github.com/larsks/kubectl-saconfig
shortDescription: Generate a kubeconfig file for authenticating as a service account
version: v0.1.1
description: |
Request a token using the [TokenRequest] API and generate a kubeconfig file
for authenticating as a service account. Outputs the generated
configuration to stdout (default) or to a file of your choice (--output).
Supports impersonation if you need elevated privileges to complete the
token request (kubectl saconfig --as system:admin ...).
[tokenrequest]: https://kubernetes.io/docs/reference/kubernetes-api/authentication-resources/token-request-v1/
platforms:

- selector:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/larsks/kubectl-saconfig/releases/download/v0.1.1/kubectl-saconfig-darwin-amd64.tar.gz
sha256: "a59dc28798f84375eb85bbb80e3753a679c39bf42305574fae6a78ed47afa9df"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .

- selector:
matchLabels:
os: darwin
arch: arm64
uri: https://github.com/larsks/kubectl-saconfig/releases/download/v0.1.1/kubectl-saconfig-darwin-arm64.tar.gz
sha256: "63c875cdb049d07dd52100c45cbf2aac4696effd5777040d844be5bc5791e637"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .

- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/larsks/kubectl-saconfig/releases/download/v0.1.1/kubectl-saconfig-linux-amd64.tar.gz
sha256: "4166ccbe2eb96e4f4e180cfcccf0fd2ce241b0a61942f81835377c79ee2808e0"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .

- selector:
matchLabels:
os: linux
arch: arm
uri: https://github.com/larsks/kubectl-saconfig/releases/download/v0.1.1/kubectl-saconfig-linux-arm.tar.gz
sha256: "7b79232534e2df9d4b086e1a763f1f79e9f6b55650f7ab6cb1dc664835163e86"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .

- selector:
matchLabels:
os: linux
arch: arm64
uri: https://github.com/larsks/kubectl-saconfig/releases/download/v0.1.1/kubectl-saconfig-linux-arm64.tar.gz
sha256: "9a47fb6da3cc9d92c06b3a89b7f0cbfa8c870005739802053e9b61c149809e2a"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .


0 comments on commit 6105bdb

Please sign in to comment.