forked from patrickdappollonio/kubectl-slice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.krew.yaml
49 lines (49 loc) · 2.32 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
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: slice
spec:
version: {{ .TagName }}
homepage: https://github.com/patrickdappollonio/kubectl-slice
shortDescription: Split a multi-YAML file into individual files.
description: |
This is a tool that can split a multi-YAML Kubernetes manifest into multiple subfiles using
a naming convention you choose. This is done by parsing the YAML code and giving you the option
to access any key from the YAML object by loading it into a Go Templates.
platforms:
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/patrickdappollonio/kubectl-slice/releases/download/v{{ slice .TagName 1 }}/kubectl-slice_{{ slice .TagName 1 }}_darwin_arm64.tar.gz" .TagName | indent 6 }}
bin: kubectl-slice
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/patrickdappollonio/kubectl-slice/releases/download/v{{ slice .TagName 1 }}/kubectl-slice_{{ slice .TagName 1 }}_darwin_x86_64.tar.gz" .TagName | indent 6 }}
bin: kubectl-slice
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/patrickdappollonio/kubectl-slice/releases/download/v{{ slice .TagName 1 }}/kubectl-slice_{{ slice .TagName 1 }}_linux_arm64.tar.gz" .TagName | indent 6 }}
bin: kubectl-slice
- selector:
matchLabels:
os: linux
arch: arm
{{addURIAndSha "https://github.com/patrickdappollonio/kubectl-slice/releases/download/v{{ slice .TagName 1 }}/kubectl-slice_{{ slice .TagName 1 }}_linux_armv6.tar.gz" .TagName | indent 6 }}
bin: kubectl-slice
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/patrickdappollonio/kubectl-slice/releases/download/v{{ slice .TagName 1 }}/kubectl-slice_{{ slice .TagName 1 }}_linux_x86_64.tar.gz" .TagName | indent 6 }}
bin: kubectl-slice
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/patrickdappollonio/kubectl-slice/releases/download/v{{ slice .TagName 1 }}/kubectl-slice_{{ slice .TagName 1 }}_windows_x86_64.tar.gz" .TagName | indent 6 }}
bin: kubectl-slice.exe