Skip to content

Commit 20047c1

Browse files
authored
Fix .krew.yaml template (migtools#86)
1 parent b36cac9 commit 20047c1

File tree

1 file changed

+82
-29
lines changed

1 file changed

+82
-29
lines changed

.krew.yaml

Lines changed: 82 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,62 +5,115 @@ metadata:
55
spec:
66
version: {{ .TagName }}
77
homepage: https://github.com/migtools/oadp-cli
8+
shortDescription: CLI for OpenShift APIs for Data Protection (OADP) operator
9+
description: |
10+
kubectl-oadp is a kubectl plugin for managing OpenShift API for Data Protection (OADP) backup and restore operations.
11+
12+
It provides both admin and non-admin commands:
13+
- Admin commands: Full OADP/Velero backup and restore operations
14+
- Non-admin commands: Namespace-scoped backup operations with automatic namespace detection
15+
16+
The plugin automatically detects the appropriate namespace from your current kubectl context
17+
for non-admin operations, following the principle of least privilege.
18+
19+
Features:
20+
- Create and manage OADP backups
21+
- View backup status and logs
22+
- Delete backups
23+
- Support for both cluster-admin and namespace-scoped operations
24+
caveats: |
25+
This plugin requires:
26+
- OADP operator to be installed in the cluster
27+
- Ensure the velero namespace (where the server is running) is correct: Run `kubectl oadp client config set namespace=<namespace>` to set the velero namespace
28+
- Appropriate RBAC permissions for the operations you want to perform
29+
- Read more documentation at: https://github.com/migtools/oadp-cli
830
platforms:
931
- selector:
1032
matchLabels:
11-
os: darwin
33+
os: linux
1234
arch: amd64
13-
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
35+
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
36+
files:
37+
- from: kubectl-oadp
38+
to: .
39+
- from: LICENSE
40+
to: .
1441
bin: kubectl-oadp
1542
- selector:
1643
matchLabels:
17-
os: darwin
44+
os: linux
1845
arch: arm64
19-
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
46+
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
47+
files:
48+
- from: kubectl-oadp
49+
to: .
50+
- from: LICENSE
51+
to: .
2052
bin: kubectl-oadp
2153
- selector:
2254
matchLabels:
2355
os: linux
24-
arch: amd64
25-
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
56+
arch: ppc64le
57+
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_ppc64le.tar.gz" .TagName }}
58+
files:
59+
- from: kubectl-oadp
60+
to: .
61+
- from: LICENSE
62+
to: .
2663
bin: kubectl-oadp
2764
- selector:
2865
matchLabels:
2966
os: linux
67+
arch: s390x
68+
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_s390x.tar.gz" .TagName }}
69+
files:
70+
- from: kubectl-oadp
71+
to: .
72+
- from: LICENSE
73+
to: .
74+
bin: kubectl-oadp
75+
- selector:
76+
matchLabels:
77+
os: darwin
78+
arch: amd64
79+
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
80+
files:
81+
- from: kubectl-oadp
82+
to: .
83+
- from: LICENSE
84+
to: .
85+
bin: kubectl-oadp
86+
- selector:
87+
matchLabels:
88+
os: darwin
3089
arch: arm64
31-
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
90+
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
91+
files:
92+
- from: kubectl-oadp
93+
to: .
94+
- from: LICENSE
95+
to: .
3296
bin: kubectl-oadp
3397
- selector:
3498
matchLabels:
3599
os: windows
36100
arch: amd64
37101
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
102+
files:
103+
- from: kubectl-oadp.exe
104+
to: .
105+
- from: LICENSE
106+
to: .
38107
bin: kubectl-oadp.exe
39108
- selector:
40109
matchLabels:
41110
os: windows
42111
arch: arm64
43112
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_windows_arm64.tar.gz" .TagName }}
113+
files:
114+
- from: kubectl-oadp.exe
115+
to: .
116+
- from: LICENSE
117+
to: .
44118
bin: kubectl-oadp.exe
45-
shortDescription: CLI for OpenShift APIs for Data Protection (OADP) operator
46-
description: |
47-
kubectl-oadp is a kubectl plugin for managing OpenShift API for Data Protection (OADP) backup and restore operations.
48-
49-
It provides both admin and non-admin commands:
50-
- Admin commands: Full OADP/Velero backup and restore operations
51-
- Non-admin commands: Namespace-scoped backup operations with automatic namespace detection
52-
53-
The plugin automatically detects the appropriate namespace from your current kubectl context
54-
for non-admin operations, following the principle of least privilege.
55-
56-
Features:
57-
- Create and manage OADP backups
58-
- View backup status and logs
59-
- Delete backups
60-
- Support for both cluster-admin and namespace-scoped operations
61-
caveats: |
62-
This plugin requires:
63-
- OADP operator to be installed in the cluster
64-
- Ensure the velero namespace (where the server is running) is correct: Run `kubectl oadp client config set namespace=<namespace>` to set the velero namespace
65-
- Appropriate RBAC permissions for the operations you want to perform
66-
- Read more documentation at: https://github.com/migtools/oadp-cli
119+

0 commit comments

Comments
 (0)