lintongj and KubeKween
2d845683a2
Add LD_LIBRARY_PATH as an env varible for the use of vsphere plugin ( #1893 )
...
* Add LD_LIBRARY_PATH as an env varible for the use of vsphere plugin
Signed-off-by: Lintong Jiang <lintongj@vmware.com >
2019-09-27 13:10:00 -07:00
Steve Kriss and KubeKween
2e849dcb99
Fix for #1888 : check item's original namespace, not remapped one, for inclusion/exclusion ( #1909 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-25 18:01:16 -07:00
Adnan Abdulhussein and Nolan Brubaker
dd088e3475
velero API type changes for structural schema CRDs ( #1898 )
...
* velero API type changes for structural schema CRDs
- make optional fields consistent with comment and omitempty struct tags
- adds kubebuilder annotations for structural schema validations
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* update generated crds
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* update velero install to use structural schema generated crds
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* move enum declarations closer to type declarations
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add labels to generated crds
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* allow null values in some fields
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* allow labelSelector to be null
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* remove debug statement
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* make update
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add enum validations for CRD phases
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* changelog
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-09-24 18:37:28 -04:00
Nolan Brubaker and Steve Kriss
8ec1548b3c
Add features package ( #1849 )
...
* Add features package
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-09-18 10:57:04 -06:00
Steve Kriss and Nolan Brubaker
fdd04b4d90
GCP: support specifying Cloud KMS key name for backup storage locations ( #1879 )
...
GCP: support specifying Cloud KMS key for backup storage location
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-17 16:35:28 -04:00
Steve Kriss and KubeKween
bc60412f29
AWS: add support for arbitrary SSE algorithms, e.g. AES256 ( #1869 )
...
* AWS: add support for arbitrary SSE algorithms, e.g. AES256
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-12 10:13:46 -07:00
Steve Kriss
b51d725c81
changelog for PR #1864
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-11 09:30:37 -06:00
Adnan Abdulhussein and Steve Kriss
23376e6293
record restic restore progress in PodVolumeRestore ( #1854 )
...
* record restic restore progress in PodVolumeRestore
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add progress output to velero describe restore --details
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* test getVolumeSize
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* block on send to finish goroutine
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* remove sync import
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add changelog
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* make update
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-09-10 15:50:57 -06:00
colin bayer and Steve Kriss
8b0cf3855c
Bug/1848 ( #1865 )
...
* Modifies documentation to use a wider layout; adds better md table formatting
Signed-off-by: Colin Bayer <ccbayer@gmail.com >
* Adds Changelog notes
Signed-off-by: Colin Bayer <ccbayer@gmail.com >
* remove redundant css rule
Signed-off-by: Colin Bayer <ccbayer@gmail.com >
2019-09-10 14:33:26 -06:00
Adnan Abdulhussein and KubeKween
26e06dae53
fix excluding additional items with the exclude-from-backup label ( #1843 )
...
* fix excluding additional items with the exclude-from-backup label
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-09-10 11:45:55 -07:00
Adnan Abdulhussein and KubeKween
1e182e5837
record restic backup progress in PodVolumeBackup ( #1821 )
...
* record restic backup progress in PodVolumeBackup
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-09-10 11:28:19 -07:00
Steve Kriss and Nolan Brubaker
11190065fd
velero install: wait for restic daemonset to be ready ( #1859 )
...
* velero install: wait for restic daemonset to be ready
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-09 17:54:47 -04:00
Steve Kriss and Adnan Abdulhussein
60f9898ca0
restore: rename PV when remapping a namespace if PV exists in-cluster ( #1779 )
...
* rename PV during restore when cloning a namespace
Signed-off-by: Steve Kriss <krisss@vmware.com >
* rename func and vars, switch to if..else
Signed-off-by: Steve Kriss <krisss@vmware.com >
* make pv renamer func configurable for testing purposes
Signed-off-by: Steve Kriss <krisss@vmware.com >
* add unit test cases
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* address review feedback
Signed-off-by: Steve Kriss <krisss@vmware.com >
* address review feedback
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-27 16:42:38 -07:00
Steve Kriss and Adnan Abdulhussein
ef911ff21b
when backing up PVCs with restic, explicitly specify --parent ( #1807 )
...
* when backing up PVCs with restic, explicitly specify --parent
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* address review feedback
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-27 16:37:51 -07:00
Adnan Abdulhussein and KubeKween
6aa0215137
create backups from schedules using velero create backup ( #1734 )
...
* add --from-schedule to `velero backup create` to create backups from schedules
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-08-23 13:03:51 -07:00
Steve Kriss and Adnan Abdulhussein
686f41ebec
remove calls to restic check before/after prune ( #1794 )
...
* remove calls to restic check before/after prune
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-23 10:53:00 -07:00
Steve Kriss and GitHub
efc0be5e48
Merge pull request #1781 from mesosphere/fix_url
...
fix error formatting
2019-08-22 09:32:14 -06:00
Steve Kriss
dfb225807b
v1.1.0 changelog
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-21 15:01:10 -06:00
Steven Chung
8ae40b55ec
fix error formatting
...
would interpret % as printf formatted strings
Signed-off-by: Steven Chung <schung@d2iq.com >
2019-08-21 12:49:59 -04:00
betta1 and Steve Kriss
cfb663f795
Add the prefix to BSL config map so that object stores can use it when initializing ( #1767 )
...
Signed-off-by: Antony Bett <antony.bett@gmail.com >
2019-08-19 14:05:38 -06:00
Steve Kriss
76a91a80b2
v1.1.0-beta.2 changelog
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-13 13:38:01 -06:00
Nolan Brubaker
363c2692a1
Use custom namespace when creating Velero clients
...
The Velero deployment did not have a way of exposing the namespace it
was installed in to the API client. This is a problem for plugins that
need to query for resources in that namespaces, such as the restic
restore process that needs to find PodVolume(Backup|Restore)s.
While the Velero client is consulted for a configured namespace, this
cannot be set in the server pod since there is no valid home directory
in which to place it.
This change provides the namespace to the deployment via the downward
API, and updates the API client factory to use the VELERO_NAMESPACE
before looking at the config file, so that any plugins using the client
will look at the appropriate namespace.
Fixes #1743
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-08-13 13:06:12 -04:00
Adnan Abdulhussein and Steve Kriss
7b7b96de74
velero install: support velero/restic pod cpu/mem requests with unbounded limits ( #1745 )
...
* support velero/restic pod cpu/mem requests with unbounded limits
explicitly treat "0" value as unbounded
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* update flag documentation
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* changelog
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* update restic configmap docs
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-08-09 12:54:04 -06:00
Adnan Abdulhussein
f18d7300a8
changelog
...
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-08-08 13:56:48 -07:00
Steve Kriss and GitHub
9d9c232729
add v1.1.0-beta.1 changelog ( #1733 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-07 07:51:46 -06:00
Steve Kriss and KubeKween
80692a8a39
Properly restore PVs with a reclaim policy of Retain and restic backups ( #1713 )
...
* reorganize persistent volume restore code for clarity
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-06 13:40:35 -07:00
KubeKween and Adnan Abdulhussein
4accb8512a
Restore from PodVolumeBackups ( #1723 )
...
* Restore from PodVolumeBackups
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Partially address code reviews
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Partially address code reviews #2
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Clean up struct
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Fix log messages
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Fix tests
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Clean up
Signed-off-by: Carlisia <carlisiac@vmware.com >
* Add changelog
Signed-off-by: Carlisia <carlisiac@vmware.com >
2019-08-06 13:17:36 -07:00
Adnan Abdulhussein and KubeKween
4e1b1f9457
use Backup CR labels as tags for snapshots ( #1729 )
...
* use Backup CR labels as tags for snapshots
This allows users to define custom tags to be added to snapshots, by
specifying custom labels on the Backup CR with the `velero backup create
--labels` flag.
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-08-06 13:01:36 -07:00
Nolan Brubaker and Steve Kriss
a4e70456a1
Add resource limits to restic init container ( #1677 )
...
* Add resource limits to restic init container
Fixes #1201
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Start restic restore item action tests
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Get initial tests for restore action working
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Add new test case
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Move resource parsing into a shared function
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Fetch request/limits from plugin's ConfigMap
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Use builders
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Use moved ParseResourceRequirements function
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Move init container building inline
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Drop CPU limit down a bit and clarify error message
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Fix godoc
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Add resource requirements to doc
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-08-05 13:18:11 -06:00
Nolan Brubaker and KubeKween
635dd27e1a
Make secret file optional on install ( #1699 )
...
* Make secret file optional on install
Fixes #1689
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-08-01 15:57:36 -07:00
Adnan Abdulhussein and KubeKween
2a6929d453
add velero install flags for configuring restic resource requirements ( #1710 )
...
* add velero install flags for configuring restic resource requirements
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-07-31 12:24:47 -07:00
Steve Kriss and Adnan Abdulhussein
b24a603711
periodically check for stale restic repo locks ( #1708 )
...
* periodically check for stale restic repo locks
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* only try to init a restic repo if it doesn't already exist
Signed-off-by: Steve Kriss <krisss@vmware.com >
* reword comment
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-07-31 10:52:23 -07:00
Steve Kriss and KubeKween
f2d06bc5e9
strip leading/trailing slashes from BSL bucket & prefix vals ( #1694 )
...
* strip leading/trailing slashes from BSL bucket & prefix vals
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-07-31 08:27:12 -07:00
carthewd and KubeKween
22eca22ac8
Add JSON as an option for log output ( #1654 )
...
* Add JSON as an option for log output
Signed-off-by: Donovan Carthew <donovan.carthew@gmail.com >
2019-07-30 16:29:34 -07:00
Adnan Abdulhussein and Nolan Brubaker
248ee89123
add configurable CPU/memory requests/limits for velero pod on install ( #1678 )
...
* add configurable CPU/memory requests/limits for velero pod on install
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-07-29 15:13:06 -04:00
KubeKween and Nolan Brubaker
3b9af8c654
Store PodVolumeBackups in obj storage & use as source of truth ( #1577 )
...
* Store PodVolumeBackups in object storage
Signed-off-by: Carlisia <carlisiac@vmware.com >
2019-07-24 15:51:20 -04:00
Nolan Brubaker and Adnan Abdulhussein
aa8c0cd471
Honor kube client flags in install command ( #1656 )
...
Flags specifying the kubeconfig or kubecontext to use weren't actually
being used by the install command.
Fixes #1651
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-07-17 14:19:14 -07:00
Nolan Brubaker and Steve Kriss
3124570c7f
Remove references to apps/v1beta1 API group ( #1673 )
...
* Remove references to apps/v1beta1 API group
In Kubernetes v1.16, the apps/v1 API group will be the default served
for relevant resources.
Update any references to apps/v1beta1 for fowards compatibility.
Fixes #1672
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Update API group on plugin commands
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-07-17 15:03:48 -06:00
Steve Kriss and Adnan Abdulhussein
1bb167ef90
add restore item action to change PVC/PV storage class name ( #1621 )
...
* add restore item action to change PVC/PV storage class name
Signed-off-by: Steve Kriss <krisss@vmware.com >
* code review
Signed-off-by: Steve Kriss <krisss@vmware.com >
* change existing plugin names to lowercase/hyphenated
Signed-off-by: Steve Kriss <krisss@vmware.com >
* add validation for new storage class name
Signed-off-by: Steve Kriss <krisss@vmware.com >
* add test cases
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* fix imports
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update plugin names to be more consistent
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update unit tests to use pkg/test object constructors
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-07-15 11:19:38 -07:00
Nolan Brubaker and KubeKween
63964fc6f9
Append "/mount" to directory for CSI volumes ( #1615 )
...
CSI volumes are mounted one level deeper than "native" kubernetes
volumes, and this needs to be appended for proper restic support.
Fixes #1313 .
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-07-10 15:16:21 -07:00
Nolan Brubaker and GitHub
7724464017
Merge pull request #1605 from Prajyot-Parab/add-ppc64le-support
...
enable support for ppc64le architecture
2019-07-09 13:43:11 -04:00
John Matthews
afa49f398f
bug fix: Fixed namespace usage with cli command 'version'
...
Signed-off-by: John Matthews <jwmatthews@gmail.com >
2019-07-07 13:54:46 -04:00
Traci Kamp and KubeKween
f829dabcf4
Add pod-annotations CLI flag to the install command ( #1626 )
...
* allow users to specify additional Velero/restic pod annotations on the command line with the pod-annotations flag
Signed-off-by: Traci Kamp <traci.kamp@gmail.com >
2019-07-03 15:22:34 -07:00
Adnan Abdulhussein and Steve Kriss
eec5cc687e
validate pod volumes hostpath mount on restic server startup ( #1616 )
...
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-07-03 14:20:31 -06:00
Nolan Brubaker and GitHub
e371ba78b0
Merge pull request #1612 from skriss/restore-addl-items-bugs
...
properly filter additional items returned from restore item actions
2019-06-28 17:12:38 -04:00
Adnan Abdulhussein and Nolan Brubaker
2156124dfc
record PodVolumeBackup/Restore start and completion timestamps ( #1609 )
...
* record PodVolumeBackup start and completion timestamps
adds startTimestamp and completionTimestamp fields to the
PodVolumeBackup status spec
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* record PodVolumeRestore start and completion timestamps
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-06-28 11:58:02 -04:00
Steve Kriss
db393ec199
properly filter additional items returned from restore item actions
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-06-28 08:59:23 -06:00
Steve Kriss
75a96dfa92
fix bugs in finding applicable restore item actions
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-06-27 13:06:16 -06:00
root
764de79cf5
add changelog
...
Signed-off-by: root <root@prajyot-ppc-velero-client.novalocal >
2019-06-26 11:13:49 +00:00
Adnan Abdulhussein and Steve Kriss
b0bdaeea73
ensure correct backup item actions run with namespace selector ( #1601 )
...
* ensure correct backup item actions run with namespace selector
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* changelog
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* don't run backup item actions for namespace resources
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* simplify cluster-scope resources checks
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-06-24 15:50:25 -06:00