-
Notifications
You must be signed in to change notification settings - Fork 19
/
.krew.yaml
62 lines (55 loc) · 2.23 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: view-secret
spec:
version: {{ .TagName }}
homepage: https://github.com/elsesiy/kubectl-view-secret
shortDescription: Decode Kubernetes secrets
description: |+2
Base64 decode by key or all key/value pairs in a given secret.
# print secret keys
$ kubectl view-secret <secret>
# decode specific entry
$ kubectl view-secret <secret> <key>
# decode all secret contents
$ kubectl view-secret <secret> -a/--all
# print keys for secret in different namespace
$ kubectl view-secret <secret> -n/--namespace foo
# print keys for secret in different context
$ kubectl view-secret <secret> -c/--context ctx
# print keys for secret by providing kubeconfig
$ kubectl view-secret <secret> -k/--kubeconfig <cfg>
# suppress info output
$ kubectl view-secret <secret> -q/--quiet
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/elsesiy/kubectl-view-secret/releases/download/{{ .TagName }}/kubectl-view-secret_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
bin: kubectl-view-secret
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/elsesiy/kubectl-view-secret/releases/download/{{ .TagName }}/kubectl-view-secret_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
bin: kubectl-view-secret
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/elsesiy/kubectl-view-secret/releases/download/{{ .TagName }}/kubectl-view-secret_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
bin: kubectl-view-secret
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/elsesiy/kubectl-view-secret/releases/download/{{ .TagName }}/kubectl-view-secret_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
bin: kubectl-view-secret
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/elsesiy/kubectl-view-secret/releases/download/{{ .TagName }}/kubectl-view-secret_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
bin: kubectl-view-secret.exe