Steve Kriss
36c7ebf4b7
remove fsfreeze-pause image, replace with ubuntu in nginx example ( #2068 )
...
* remove fsfreeze-pause image, replace with ubuntu in nginx example
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* switch to sleep infinity for clarity
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-12-02 11:48:47 -08:00
Steve Kriss
3add90ba52
changelog
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-11-08 15:02:37 -07:00
Steve Kriss
f016aae9c3
v1.2.0 changelog
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-11-07 08:20:22 -07:00
Antony S Bett
121dc02d2f
Ensure object store plugin processes are cleaned up after restore and after BSL validation during server start up ( #2041 )
...
* Ensure child object store plugin processes are cleaned up during restore
Signed-off-by: Antony Bett <antony.bett@gmail.com >
2019-11-05 08:58:08 -08:00
Steve Kriss
4fb1bc2ef3
restic: don't try to restore PVBs with no snapshotID ( #2031 )
...
* restic: don't try to restore PVBs with no snapshotID
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-11-04 16:18:08 -07:00
Naina Verma
984e2ce589
Update Restore Documentation ( #1957 )
...
Signed-off-by: naina verma <vnaina@cloudhealthtech.com >
2019-11-04 08:21:42 -07:00
Steve Kriss
558e4b9075
v1.2.0-beta.1 release ( #1995 )
...
* generate v1.2.0-beta.1 docs site
Signed-off-by: Steve Kriss <krisss@vmware.com >
* v1.2.0-beta.1 changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* add PR 1994 changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* fix image tag
Co-Authored-By: Adnan Abdulhussein <adnan@prydoni.us >
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-10-24 15:24:18 -06:00
Steve Kriss
0c1fc8195a
add --allow-partially-failed flag to velero restore create ( #1994 )
...
* add --allow-partially-failed flag to velero restore create
Signed-off-by: Steve Kriss <krisss@vmware.com >
* remove extraneous client creation
Signed-off-by: Steve Kriss <krisss@vmware.com >
* add godoc to helper func
Signed-off-by: Steve Kriss <krisss@vmware.com >
* todo
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-10-24 14:20:57 -07:00
Antony S Bett
0450567bba
Allow backup storage locations to specify backup sync period or toggle off sync ( #1936 )
...
* Allow backup storage locations to specify backup sync period or toggle off sync
Signed-off-by: Antony Bett <antony.bett@gmail.com >
* Add --backup-sync-period flag to backup location create command
Signed-off-by: Antony Bett <antony.bett@gmail.com >
2019-10-24 08:32:45 -06:00
KubeKween
d26bf05b33
Extract providers ( #1985 )
...
* Remove cloud providers and reorg code
Signed-off-by: Carlisia <carlisia@vmware.com >
* Update dependencies
Signed-off-by: Carlisia <carlisia@vmware.com >
* Fix tests
Signed-off-by: Carlisia <carlisia@vmware.com >
* fix dependency issues
Signed-off-by: Carlisia <carlisia@vmware.com >
* Delete dup test
Signed-off-by: Carlisia <carlisia@vmware.com >
* Add back spaces to file
Signed-off-by: Carlisia <carlisia@vmware.com >
* Remove and update docs
Signed-off-by: Carlisia <carlisia@vmware.com >
* Make the plugins flag required
Signed-off-by: Carlisia <carlisia@vmware.com >
* Add changelog
Signed-off-by: Carlisia <carlisia@vmware.com >
* Make the plugins flag conditional
Signed-off-by: Carlisia <carlisia@vmware.com >
2019-10-22 15:31:27 -07:00
Alexander Demichev
1564317cef
Restore action for cluster/namespace role bindings ( #1974 )
...
Signed-off-by: Alexander Demichev <ademicev@redhat.com >
2019-10-21 15:11:26 -06:00
FrankChen7
ae33441500
Add --no-default-storage-location flag to velero install to enable velero deployment without default BSL ( #1931 )
...
This closes #1853 .
Signed-off-by: Yunqian <specyq@gmail.com >
2019-10-18 08:41:59 -06:00
Scott Seago
970f17c1ef
If includeClusterResources is nil/auto, pull in necessary CRDs ( #1831 )
...
Related issue: https://github.com/heptio/velero/issues/1830
This accomplishes everything
that's needed, although there might be room for improvement in avoiding
a GET call for matching CRDs for each resource backed up. An alternative
could be a single call to get all CRDs prior to iterating over resources
and passing this into the backupResource function.
Signed-off-by: Scott Seago <sseago@redhat.com >
2019-10-17 12:31:04 -06:00
Steve Kriss
557d170541
restic: only backup ReadWriteMany PVC's once per velero backup ( #1896 )
...
* restic: only backup ReadWriteMany PVC's once per velero backup
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-10-08 17:16:35 -04:00
Steve Kriss
d3e30dd58b
Azure china/germany support ( #1938 )
...
* feat: add azure china support
Signed-off-by: andyzhangx <xiazhang@microsoft.com >
* remove AZURE_CLOUD_NAME from required env var fetching
Signed-off-by: Steve Kriss <krisss@vmware.com >
* minor simplification of parseAzureEnvironment
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* remove cloudNameEnvVar from getRequiredValues call
Signed-off-by: Steve Kriss <krisss@vmware.com >
* just check for err != nil
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-10-08 17:13:51 -04:00
Nolan Brubaker
f009fe9bd1
Add --plugins flag to velero install ( #1930 )
...
* Add plugins flag to install
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-10-03 16:44:52 -07:00
Steve Chung
db59d8d4bc
Revert "Revert "allow self signed certs with insecureSkipVerify"" ( #1793 )
...
* handle self-signed certs with insecureSkipTLSVerify server config
Signed-off-by: Steven Chung <schung@d2iq.com >
2019-10-03 13:46:46 -07:00
Moritz Schmitz von Hülst
eadac44e10
Add option for Azure cross subscription backups ( #1895 )
...
* add option for different subscription id
Signed-off-by: Moritz Schmitz von Hülst <msc@marketlogicsoftware.com >
2019-10-03 13:31:35 -07:00
Steve Kriss
d96186473c
sync controller: replace revision file with full diff each interval ( #1892 )
...
* backup sync controller: replace revision file with full diff each interval
Signed-off-by: Steve Kriss <krisss@vmware.com >
* remove getting/setting of metadata/revision file
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
* tweak logging
Signed-off-by: Steve Kriss <krisss@vmware.com >
* don't keep podVolumeBackup log field around after syncing PVBs
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update generated CRDs
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-27 16:23:11 -04:00
Christopher Angelo Phillips
ca6c0a5a3d
Increment logging for item backupper ( #1904 )
...
Signed-off-by: Christopher Phillips <cphillips918@gmail.com >
2019-09-27 13:17:54 -07:00
lintongj
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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