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 Dec 1, 2024
1 parent 00893d1 commit df11aad
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions plugins/saconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
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.2/kubectl-saconfig-darwin-amd64.tar.gz
sha256: "020e9323e0375f1c1b63fd83b3d5e96cf966f40971ad53e325d5dc05acbf0d7a"
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.2/kubectl-saconfig-darwin-arm64.tar.gz
sha256: "393d030517602a92b432c375d8db1b9026ff9ecbf048336c302c7a18db51172a"
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.2/kubectl-saconfig-linux-amd64.tar.gz
sha256: "daf9e7d0753a45b0a707ddec7d4d9f3b0df643b3a3da7bf57583801c45016975"
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.2/kubectl-saconfig-linux-arm.tar.gz
sha256: "dbd7a0e9d76889f824d16581223ff6e17cfb64b9482ff90ec6e7eded47ea0b87"
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.2/kubectl-saconfig-linux-arm64.tar.gz
sha256: "fe7cbeeaa4a13aa8ff66d6adbc8eac3d95160cb9b8092a2bddf3bcb1f5b991b0"
bin: "./kubectl-saconfig"
files:
- from: kubectl-saconfig
to: .
- from: LICENSE
to: .

0 comments on commit df11aad

Please sign in to comment.