JenTing Hsiao and GitHub
b4446bd358
Fix restic backup volume snapshot to the second location failed ( #2244 )
...
* Fix restic backup volume snapshot to the second location failed
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
2020-02-19 11:01:21 -08:00
Mayank and GitHub
1a1372550d
Use PV name returned from volumesnapshotter while creating a PV ( #2216 )
...
* Using PV name returned from volumesnapshotter while creating a PV
Signed-off-by: mayank <mayank.patel@mayadata.io >
2020-02-10 13:17:15 -07:00
Mark Davydov and GitHub
95c8cd3d66
Replaced deprecated helm repo url at docs 📄 ( #2209 )
...
* Replaced deprecated helm repo url at docs 📄
Signed-off-by: Mark Davydov <mark@monday.com >
2020-02-05 11:52:27 -08:00
Shane Utt and GitHub
e794d8404d
Add ARM container builds ( #2227 )
...
Signed-off-by: Shane Utt <shaneutt@linux.com >
2020-02-03 13:12:47 -08:00
Ashish Amarnath and GitHub
21264a11ec
Merge pull request #2218 from cpanato/GH-1168
...
remove schedule validation
2020-01-31 13:00:24 -08:00
Steve Kriss and GitHub
37011ee5ac
bug fix: back up server-preferred version of CRD ( #2230 )
...
* bug fix: back up server-preferred version of CRD
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-01-31 08:45:46 -07:00
Nolan Brubaker and GitHub
6745979a7b
Wait for CRDs to be ready before restoring CRs ( #1937 )
...
* Wait for CRDs to be available and ready
When restoring CRDs, we should wait for the definition to be ready and
available before moving on to restoring specific CRs.
While the CRDs are often ready by the time we get to restoring a CR,
there is a race condition where the CRD isn't ready.
This change waits on each CRD at restore time.
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2020-01-30 09:19:13 -08:00
Carlos Panato
4a5a63fc92
add changelog
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com >
2020-01-29 18:24:36 +01:00
JenTing Hsiao and Nolan Brubaker
b19097f825
Pruning unknown fields ( #2187 )
...
* Pruning unknown fields
In CRD apiversion v1beta1, default preserveUnknownFields=true.
In CRD apiversion v1, the preserveUnknownFields can only be false.
Otherwise, the k8s validation bumps out error message for the
invalid preserveUnknownFields value.
Deploy Velero on k8s 1.16+ with CRD apiversion v1beta1, the
k8s cluster converts apiversion from v1beta1 to v1 automatically.
Fully backup and restore the cluster, restore bumps out error message
due to the preserveUnknownFields=true is not allowed on k8s 1.16+.
Since the CRD structural schema had been defined, enable the preserveUnknownFields
to false to solves the restore bumps out error message on k8s 1.16+.
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
* Add changelog
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
2020-01-28 14:04:28 -05:00
Nolan Brubaker and Carlisia Campos
5b1280c2cd
Fix restore issues for CRD v1 on Kubernetes v1.16 clusters ( #2197 )
...
Fix restore issues for CRD v1 on Kubernetes v1.16 clusters
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2020-01-27 13:59:08 -08:00
Ashish Amarnath and GitHub
ec22f2c88d
Merge pull request #2196 from skriss/fix-1777
...
recompute backup_last_successful_timestamp metric during resync
2020-01-21 17:01:51 -08:00
Ashish Amarnath and GitHub
421dcd4e8d
Merge pull request #2201 from skriss/fix-2121
...
fix race condition in waiting for restic restores to complete
2020-01-21 15:16:08 -08:00
Patrik Cyvoct
823b1f7d6d
bump restic to 0.9.6
...
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io >
2020-01-21 18:12:15 +01:00
Steve Kriss
65e970f59d
changelog
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-01-15 16:09:54 -07:00
Scott Seago and Nolan Brubaker
aa44cf1c32
Check for nil LastMaintenanceTime in dueForMaintenance ( #2200 )
...
* Check for nil LastMaintenanceTime in dueForMaintenance
ResticRepository.dueForMaintenance causes a panic in the velero pod
("invalid memory address or nil pointer dereference") if
repository.Status.LastMaintenanceTime is nil. This fix returns 'true'
if it's nil, so the repository is due for maintenance if LastMaintenanceTime
is nil *or* the time elapsed since the last maintenance is greater than
repository.Spec.MaintenanceFrequency.Duration
Signed-off-by: Scott Seago <sseago@redhat.com >
* changelog for PR#2200
Signed-off-by: Scott Seago <sseago@redhat.com >
2020-01-15 12:06:16 -05:00
Steve Kriss
f4f2351411
changelog
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-01-14 14:29:46 -07:00
Prajyot-Parab and Nolan Brubaker
b9d02795b5
Multiarch image support ( #1768 )
...
* multi-arch docker image support
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* updated manifest for latest tag
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* updated manifest part
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* update changelog
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* Removed commented out code lines
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* minor changes
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* bumped restic version
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* refactoring vars
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* added purge flag to manifest push command
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* removed all-build from workflow
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* enabled docker_cli_experimental flag for docker manifest
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* Updated manifest related info
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
* Updated manifests info to doc
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com >
2020-01-07 13:33:31 -05:00
Steve Kriss and Carlisia Campos
be140985c5
bug fix: only prioritize restoring replicasets.apps ( #2157 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-12-19 09:44:08 -08:00
Steve Kriss and Carlisia Campos
7c60829f38
bug fix: don't restore cluster-scoped resources by default when restoring specific namespaces ( #2118 )
...
* add failing test case for bug
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-12-12 12:45:41 -08:00
Steve Kriss and Nolan Brubaker
96297ea437
add replicasets.apps to prioritized restore resources ( #2120 )
...
* add replicasets.apps to prioritized restore resources
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-12-11 15:32:33 -05:00
Dinesh Yadav and Nolan Brubaker
83ef4eb4d0
Support AWS_PROFILE for restic backups/restore operations ( #2096 )
...
* Support AWS_PROFILE for restic backups/restore operations
It enables Velero to switch credentials if multiple s3-compatible
backupLocations are present.
Signed-off-by: dinesh <dinesh1042@gmail.com >
* better comments and fixing typos
Signed-off-by: dinesh <dinesh1042@gmail.com >
* add changelog entry
Signed-off-by: dinesh <dinesh1042@gmail.com >
2019-12-09 09:46:02 -05:00
Steve Kriss and Carlisia Campos
f42406723c
bug fix: deep-copy backup's labels for snapshot tags ( #2075 )
...
* bug fix: deep-copy backup's labels for snapshot tags
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-12-05 12:54:19 -08:00
Roman Klimenko and Carlisia Campos
87be775139
Add support for private registry with custom port in restic-helper image ( #1999 )
...
* Add support for private registry with custom port in restic-helper image definition
Signed-off-by: Roman Klimenko <cognoz@ya.ru >
2019-12-04 08:01:39 -08:00
Steve Kriss and Nolan Brubaker
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 and KubeKween
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 and GitHub
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 and Steve Kriss
984e2ce589
Update Restore Documentation ( #1957 )
...
Signed-off-by: naina verma <vnaina@cloudhealthtech.com >
2019-11-04 08:21:42 -07:00
Steve Kriss and Adnan Abdulhussein
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 and Steve Kriss
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 and Adnan Abdulhussein
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 and Steve Kriss
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 and Steve Kriss
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 and Steve Kriss
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 and Nolan Brubaker
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 and Nolan Brubaker
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 and KubeKween
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 and KubeKween
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 and KubeKween
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 and Nolan Brubaker
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 and KubeKween
ca6c0a5a3d
Increment logging for item backupper ( #1904 )
...
Signed-off-by: Christopher Phillips <cphillips918@gmail.com >
2019-09-27 13:17:54 -07:00
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