forked from rajatjindal/kubectl-whoami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.krew.yaml
30 lines (29 loc) · 953 Bytes
/
.krew.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: whoami
spec:
version: {{ .TagName }}
homepage: https://github.com/rajatjindal/kubectl-whoami
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/rajatjindal/kubectl-whoami/releases/download/{{ .TagName }}/kubectl-whoami_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-whoami
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/rajatjindal/kubectl-whoami/releases/download/{{ .TagName }}/kubectl-whoami_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
files:
- from: "*"
to: "."
bin: kubectl-whoami
shortDescription: Show the subject that's currently authenticated as.
description: |
This plugin show the subject that's currently authenticated as.