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 c803da5
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.0
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: "b5ae733a7cb07d61bc67b35b4a7ed1cc2890f84049db8742e4170cf191bdb35c"
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: "b976e62c5913fdae1318de6f3553c0302a6435576c07580f6a0a5cdaec184b36"
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: "9a3610e2e28d3c5e3aa4d4a9ce6d486229e039a8579de7b236a8b50ce8450b79"
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: "dc2b116b19b0a5ce5fd602f801e2d4841fe930cfe58c9c7f33099acde8ac4fc9"
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: "7bfeb07eb20b19f8ed919c32acfd5644b7c1cd701aa310027694680d88322847"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .


0 comments on commit c803da5

Please sign in to comment.