-
Notifications
You must be signed in to change notification settings - Fork 8
/
.krew.yaml
76 lines (72 loc) · 2.11 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: grep
spec:
platforms:
- {{addURIAndSha "https://github.com/guessi/kubectl-grep/releases/download/{{ .TagName }}/kubectl-grep-Darwin-x86_64.tar.gz" .TagName }}
bin: kubectl-grep
files:
- from: kubectl-grep
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: darwin
arch: amd64
- {{addURIAndSha "https://github.com/guessi/kubectl-grep/releases/download/{{ .TagName }}/kubectl-grep-Darwin-arm64.tar.gz" .TagName }}
bin: kubectl-grep
files:
- from: kubectl-grep
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: darwin
arch: arm64
- {{addURIAndSha "https://github.com/guessi/kubectl-grep/releases/download/{{ .TagName }}/kubectl-grep-Linux-x86_64.tar.gz" .TagName }}
bin: kubectl-grep
files:
- from: kubectl-grep
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: linux
arch: amd64
- {{addURIAndSha "https://github.com/guessi/kubectl-grep/releases/download/{{ .TagName }}/kubectl-grep-Linux-arm64.tar.gz" .TagName }}
bin: kubectl-grep
files:
- from: kubectl-grep
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: linux
arch: arm64
- {{addURIAndSha "https://github.com/guessi/kubectl-grep/releases/download/{{ .TagName }}/kubectl-grep-Windows-x86_64.tar.gz" .TagName }}
bin: kubectl-grep.exe
files:
- from: kubectl-grep.exe
to: .
- from: LICENSE.txt
to: .
selector:
matchLabels:
os: windows
arch: amd64
version: {{ .TagName }}
homepage: https://github.com/guessi/kubectl-grep
shortDescription: Filter Kubernetes resources by matching their names
description: |
Filter Kubernetes resources by matching their names
Examples:
List all pods in all namespaces
$ kubectl grep pods --all-namespaces
List all pods in namespace "star-lab" which contain the keyword "flash"
$ kubectl grep pods -n star-lab flash
No more pipe, built-in grep :-)