Skip to content

Commit f1cc245

Browse files
committed
add .krew.yaml
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
1 parent 8e7f5f2 commit f1cc245

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.goreleaser.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ builds:
1313
archives:
1414
- builds:
1515
- kubectl-tree
16+
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
1617
wrap_in_directory: false
1718
format: tar.gz
1819
files:

.krew.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: krew.googlecontainertools.github.com/v1alpha2
2+
kind: Plugin
3+
metadata:
4+
name: tree
5+
spec:
6+
version: {{ .TagName }}
7+
homepage: https://github.com/ahmetb/kubectl-tree
8+
shortDescription: Show a tree of object hierarchies through ownerReferences
9+
description: |
10+
This plugin shows sub-resources of a specified Kubernetes API object in a
11+
tree view in the command-line. The parent-child relationship is discovered
12+
using ownerReferences on the child object.
13+
caveats: |
14+
* For resources that are not in default namespace, currently you must
15+
specify -n/--namespace explicitly (the current namespace setting is not
16+
yet used).
17+
platforms:
18+
- selector:
19+
matchLabels:
20+
os: darwin
21+
arch: amd64
22+
{{addURIAndSha "https://github.com/ahmetb/kubectl-tree/releases/download/{{ .TagName }}/kubectl-tree_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
23+
files:
24+
- from: "*"
25+
to: "."
26+
bin: kubectl-tree
27+
- selector:
28+
matchLabels:
29+
os: linux
30+
arch: amd64
31+
{{addURIAndSha "https://github.com/ahmetb/kubectl-tree/releases/download/{{ .TagName }}/kubectl-tree_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
32+
files:
33+
- from: "*"
34+
to: "."
35+
bin: kubectl-tree

0 commit comments

Comments
 (0)