Hoang, Phuong
b059030666
Initial implementation of plugin version v2: Adding context object
2021-11-07 12:22:01 -05:00
Mateusz Gozdek
dbc83af77b
Fix various typos found by codespell ( #3057 )
...
By running the following command:
codespell -S .git,*.png,*.jpg,*.woff,*.ttf,*.gif,*.ico -L \
iam,aks,ist,bridget,ue
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-11-10 11:48:35 -05:00
Benoit Gagnon
0e8a7a23cb
always use groupResource.String() when logging ( fixes #2795 ) ( #2796 )
...
Signed-off-by: Benoit Gagnon <benoit.gagnon@ubisoft.com >
2020-08-06 10:10:59 -07:00
Nolan Brubaker
bbcbde084d
Create hook package ( #2734 )
...
* Move pkg/backup/item_hook_handler to internal/hoo
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
* Add internal packages to test target
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2020-07-22 14:26:14 -07:00
Ashish Amarnath
3d3b9e312a
Revert " 🐛 fix file perissions on the manifest JSON in backup archive ( #2685 )" ( #2700 )
...
dae5230aae
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-07-10 14:07:05 -07:00
Ashish Amarnath
dae5230aae
🐛 fix file perissions on the manifest JSON in backup archive ( #2685 )
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-07-08 06:37:59 -07:00
Ashish Amarnath
b4465e92b8
🐛 Use CRD version prior to remap_crd_version backup item action ( #2683 )
...
* 🐛 preserve crd version before remapping
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-07-07 10:59:41 -07:00
Ashish Amarnath
e5e7c025dd
fix copyright boilerplate
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-06-18 14:14:15 -07:00
Ashish Amarnath
b0fd3d35c1
rename field
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-06-15 15:26:44 -07:00
Ashish Amarnath
8a2a852b87
use backup's defaultRestic flag to identify pod volumes using restic
...
Signed-off-by: Ashish Amarnath <ashisham@vmware.com >
2020-06-15 14:46:06 -07:00
Steve Kriss
1c80ba903e
don't error during backup when additional items returned by plugin don't exist ( #2595 )
...
* log a warning instead of erroring if additional item can't be found
Signed-off-by: Steve Kriss <krisss@vmware.com >
* always show backup warning/error count in get/describe
Signed-off-by: Steve Kriss <krisss@vmware.com >
* changelog
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-06-04 16:29:55 -07:00
Steve Kriss
30ca0e4322
split out collecting items from backing up items
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-05-01 15:30:42 -06:00
Steve Kriss
19c52434b4
simplify group/resource/item backupper structure
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2020-05-01 15:29:01 -06:00
Rafael Brito
0d97f9400e
Backup all groups and versions with backward compatibility ( #2373 )
...
* Backup all API Groups versions while keeping backward compatibility
Signed-off-by: Rafael Brito <rbrito@vmware.com >
* Backup all API Groups versions while keeping backward compatibility
Signed-off-by: Rafael Brito <rbrito@vmware.com >
* Adding feature flag to enable backup of multiple API group versions
Signed-off-by: Rafael Brito <rbrito@vmware.com >
2020-05-01 15:54:57 -04:00
Mayank
962f5d6859
Skipping validation for volumesnapshotlocation for backup if snapshotvolume set to false ( #2450 )
...
* Disabling validation for volumesnapshotlocation if the backup has snapshotvolume set to false
Signed-off-by: mayank <mayank.patel@mayadata.io >
* adding a changelog
Signed-off-by: mayank <mayank.patel@mayadata.io >
* addressing review comment
Signed-off-by: mayank <mayank.patel@mayadata.io >
2020-04-24 09:46:20 -07:00
Carlos Tadeu Panato Junior
c9bc6646a5
use GA topology labels for PVs ( #2219 )
...
* use GA toplogy labels for PVs
Signed-off-by: Carlos Panato <ctadeu@gmail.com >
2020-02-03 10:47:18 -08:00
Steve Kriss
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
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
48792ece1f
Updates for org move to vmware-tanzu ( #1920 )
...
* update import paths to github.com/vmware-tanzu/...
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update other GH org refs to vmware-tanzu
Signed-off-by: Steve Kriss <krisss@vmware.com >
* site and docs: update GH org to vmware-tanzu
Signed-off-by: Steve Kriss <krisss@vmware.com >
* update travis badge links on docs readmes
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-09-30 17:26:56 -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
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
Steve Kriss
c69fa4d0e1
bug fix: upload pod volume backups from *all* pods to obj storage
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-08-08 09:27:46 -06: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
Adnan Abdulhussein
07525bd593
store backup resource list metadata in object storage ( #1709 )
...
* move backedUpItems to pkg/backup.Request struct
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* construct resource itemKey field from gvk
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* store backup resource list metadata in object storage
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* remove debug log
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* fix formatting
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add missing license blocks and split BackupInfo struct lines
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add test for checking BackedUpItems matches tarball contents
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* add comment to explain test
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-08-05 11:15:55 -06:00
Adnan Abdulhussein
52d97e7bd7
proposal: expose list of backed up resources in backup details ( #1682 )
...
* proposal: expose list of backed up resources in backup details
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-07-29 14:00:56 -04:00
KubeKween
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
Adnan Abdulhussein
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
Adnan Abdulhussein
2d81e29276
ensure backup item action modifications reflected in tarball filepath ( #1587 )
...
* ensure backup item action modifications reflected in tarball filepath
This patch ensures the updated backup item's name and namespace are used
when constructing the filepath for the tarball.
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
* changelog
Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com >
2019-06-18 12:19:00 -06:00
Steve Kriss
8392e6d83f
add PartiallyFailed phase for backups, log+continue on errors ( #1386 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-04-26 09:14:26 -07:00
Steve Kriss
bb9c3f6a1a
rename BlockStore to VolumeSnapshotter
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-03-27 14:55:28 -06:00
Steve Kriss
a111eed2af
update license headers to Velero contributors ( #1302 )
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-03-20 12:32:48 -07:00
KubeKween
73514a003b
Move plugin interfaces to same package ( #1264 )
...
* Move plugin interfaces to same package
Signed-off-by: Carlisia <carlisiac@vmware.com >
2019-03-14 16:35:06 -04:00
Steve Kriss
7913ae1867
remove extraneous use of meta.Accessor
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-02-05 10:09:57 -07:00
Steve Kriss
c0a55e136b
logging tweaks for clarity
...
Signed-off-by: Steve Kriss <krisss@vmware.com >
2019-02-05 10:08:33 -07:00
Nolan Brubaker
43714caaec
Rename Ark to Velero!!!
...
Signed-off-by: Nolan Brubaker <brubakern@vmware.com >
2019-02-04 17:35:22 -05:00
Andy Goldstein
bca585162f
Run 'make update' to update formatting
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2018-10-23 13:08:42 -04:00
Wayne Witzel III
406b50a71b
update restore process using snapshot locations
...
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com >
2018-10-17 13:40:42 -06:00
Steve Kriss
da9ed38c63
store volume snapshot info as JSON in backup storage
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-17 13:39:49 -06:00
Steve Kriss
df07b7dc9f
update backup code to work with volume snapshot locations
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-17 13:36:50 -06:00
Steve Kriss
fcd27a13da
get a new metadata accessor after calling backup item actions
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-09-10 16:19:38 -06:00
Steve Kriss
1c26fbde32
remove SnapshotService, replace with direct BlockStore usage
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-07-31 08:58:11 -07:00
Andy Goldstein
130512187a
Refactor plugin management
...
Refactor plugin management:
- support multiple plugins per executable
- support restarting a plugin process in the event it terminates
- simplify plugin lifecycle management by using separate managers for
each scope (server vs backup vs restore)
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2018-07-31 08:34:57 -07:00
Steve Kriss
ca5656c279
fix bug preventing backup item action item updates from saving
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-07-26 10:38:17 -07:00
Steve Kriss
11c176c490
don't snapshot volumes that have been backed up with restic
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-06-28 10:19:34 -07:00
Yassine TIJANI
17f6a14d37
ignore terminating resources while doing a backup
...
Signed-off-by: Yassine TIJANI <yasstij11@gmail.com >
2018-06-08 16:49:35 +02:00
Steve Kriss
50d4084fac
add restic integration for doing pod volume backups/restores
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-06-06 09:48:10 -07:00
Calle Pettersson
b2ec87f05f
Run post-hooks even if backup actions fail
...
Signed-off-by: Calle Pettersson <cpettsson@gmail.com >
2018-05-23 18:44:55 +02:00
Calle Pettersson
24dfef6f15
Handle errors in additionalItemBackupper
...
Signed-off-by: Calle Pettersson <cpettsson@gmail.com >
2018-05-22 18:32:48 +02:00
Nolan Brubaker
f936c55a37
Consolidate commonly used GroupResource objects
...
Signed-off-by: Nolan Brubaker <nolan@heptio.com >
2018-05-15 15:55:15 -04:00