-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.krew.yaml
More file actions
97 lines (93 loc) · 3.27 KB
/
.krew.yaml
File metadata and controls
97 lines (93 loc) · 3.27 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: oadp
spec:
version: {{ .TagName }}
homepage: https://github.com/migtools/oadp-cli
shortDescription: CLI for OpenShift APIs for Data Protection (OADP) operator
description: |
kubectl-oadp is a kubectl plugin for managing OpenShift API for Data Protection (OADP) backup and restore operations.
It provides both admin and non-admin commands:
- Admin commands: Full OADP/Velero backup and restore operations
- Non-admin commands: Namespace-scoped backup operations with automatic namespace detection
The plugin automatically detects the appropriate namespace from your current kubectl context
for non-admin operations, following the principle of least privilege.
Features:
- Create and manage OADP backups
- View backup status and logs
- Delete backups
- Support for both cluster-admin and namespace-scoped operations
caveats: |
This plugin requires:
- OADP operator to be installed in the cluster
- Ensure the velero namespace (where the server is running) is correct: Run `kubectl oadp client config set namespace=<namespace>` to set the velero namespace
- Appropriate RBAC permissions for the operations you want to perform
- Read more documentation at: https://github.com/migtools/oadp-cli
platforms:
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
files:
- from: kubectl-oadp
to: .
- from: LICENSE
to: .
bin: kubectl-oadp
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
files:
- from: kubectl-oadp
to: .
- from: LICENSE
to: .
bin: kubectl-oadp
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
files:
- from: kubectl-oadp
to: .
- from: LICENSE
to: .
bin: kubectl-oadp
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
files:
- from: kubectl-oadp
to: .
- from: LICENSE
to: .
bin: kubectl-oadp
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
files:
- from: kubectl-oadp.exe
to: .
- from: LICENSE
to: .
bin: kubectl-oadp.exe
- selector:
matchLabels:
os: windows
arch: arm64
{{addURIAndSha "https://github.com/migtools/oadp-cli/releases/download/{{ .TagName }}/kubectl-oadp_{{ .TagName }}_windows_arm64.tar.gz" .TagName }}
files:
- from: kubectl-oadp.exe
to: .
- from: LICENSE
to: .
bin: kubectl-oadp.exe