Steve Kriss
35bb533c2d
close gzip writer before uploading volumesnapshots file
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-17 13:39:50 -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
e24248e07a
add --volume-snapshot-locations flag to ark backup create
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-17 13:36:51 -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
Wayne Witzel III
4af89fa863
add unit test for getDefaultVolumeSnapshotLocations
...
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com >
2018-10-17 13:35:52 -06:00
Wayne Witzel III
02f50b9c84
add default-volume-snapshot-locations to server cmd
...
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com >
2018-10-17 13:35:50 -06:00
Carlisia
1aa712d236
Default and validate VolumeSnapshotLocations
...
Signed-off-by: Carlisia <carlisia@grokkingtech.io >
2018-10-17 13:33:22 -06:00
Wayne Witzel III
bbf769850e
add create CLI command for snapshot locations
...
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com >
2018-10-17 13:33:22 -06:00
Wayne Witzel III
aeb221eafe
Add printer for snapshot locations
...
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com >
2018-10-17 13:33:22 -06:00
Wayne Witzel III
ffc612ac13
Add volume snapshot CLI get command
...
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com >
2018-10-17 13:33:22 -06:00
Carlisia
f20342aab9
Add VolumeLocation and Snapshot.
...
Signed-off-by: Carlisia <carlisia@grokkingtech.io >
2018-10-17 13:33:22 -06:00
captjt
ebc379ac02
Add --include-cluster-resources options when creating schedule
...
Signed-off-by: captjt <jtaylor007.jt@gmail.com >
2018-10-16 15:52:18 -04:00
KubeKween
0e7f442f00
Merge pull request #930 from skriss/fix-898
...
don't require a default backup storage location to exist
2018-10-12 12:34:44 -07:00
Wayne Witzel III
37031d5e7c
Merge pull request #920 from skriss/fix-225
...
only try to backup PVC's linked PV if PVC phase is Bound
2018-10-12 14:10:18 -04:00
Wayne Witzel III
480f1942b7
Merge pull request #927 from skriss/fix-925
...
pod restore action: check initContainers exist before processing
2018-10-12 14:09:35 -04:00
Steve Kriss
4173515435
don't require a default backup storage location to exist
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-11 14:43:27 -06:00
Andy Goldstein
fe51be6713
Merge pull request #926 from shubheksha/fix/329-remove-get-project-gcp
...
Remove logic to get a gcp project
2018-10-11 15:45:40 -04:00
Steve Kriss
38e86ceff5
pod restore action: check initContainers exist before processing
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-11 13:44:02 -06:00
Shubheksha Jalan
611bc92695
remove logic to get a gcp project
...
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com >
2018-10-11 21:23:30 +02:00
Steve Kriss
63dc6c1d9a
only try to backup PVC's linked PV if PVC phase is Bound
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-10 13:34:33 -06:00
KubeKween
d579784692
Merge pull request #910 from james-powis/fix_restic_restore_service_user_token
...
Drop volumes matching name ServiceAccountName-token-
2018-10-09 11:32:23 -07:00
James Powis
30369c2ad5
Drop volumeMounts from initContainers if SAToken
...
Signed-off-by: James Powis <powisj@gmail.com >
2018-10-05 16:00:58 -06:00
Steve Kriss
0612c5de70
templatize error message in DeleteOptions
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-05 13:24:30 -06:00
Steve Kriss
1da3278ad6
Merge pull request #874 from shubheksha/fix/748-ark-schedule-bulk-deletion
...
Add support for bulk deletion to `ark schedule delete`
2018-10-05 13:21:40 -06:00
Shubheksha Jalan
66bcbc058c
add support for bulk deletion to ark schedule delete
...
refactor and move DeleteOptions struct and methods
unexport fields not used outside the package in DeleteOptions struct
refactor BindFlags() to work with name of command
fix constructor
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com >
2018-10-05 19:45:18 +02:00
Steve Kriss
3af43b492f
add azure-specific code to support multi-location restic
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-05 09:20:56 -06:00
Steve Kriss
d009163b67
update restic to support multiple backup storage locations
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-05 09:10:35 -06:00
Wayne Witzel III
1d90d02a99
Merge pull request #900 from skriss/restic-restore-ns-mapping
...
bug: fix restic restores when using namespace mappings
2018-10-03 10:59:13 -04:00
Steve Kriss
0c88eefc0d
bug: fix restic restores when using namespace mappings
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-03 08:09:55 -06:00
Steve Kriss
eb709b8f70
only sync a backup location if it's changed since last sync
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-10-03 08:05:06 -06:00
Steve Kriss
82ab2d73ac
Merge pull request #894 from marctc/fix_backup_list_date
...
Change CreationTimestamp to StartTimestamp in backup list
2018-10-02 11:04:04 -06:00
Marc Tudurí
ae4bf3d5f8
Change CreationTimestamp by StartTimestamp in backup list
...
Signed-off-by: Marc Tudurí <marctc@gmail.com >
2018-10-02 15:17:58 +02:00
Michal Wieczorek
0f1c5c283f
Enable restoring resources with ownerReference set
...
Signed-off-by: Michal Wieczorek <wieczorek-michal@wp.pl >
2018-10-02 12:04:51 +02:00
KubeKween
94b8fae15a
Merge pull request #891 from skriss/fix-restore-logs
...
remove restore log helper for accurate line #'s
2018-10-01 21:02:17 -07:00
Steve Kriss
729a688b36
remove restore log helper for accurate line #'s
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-09-30 14:45:32 -06:00
ffd2subroutine
9fdf85130a
Minor code cleanup
...
Signed-off-by: ffd2subroutine <ffd2subroutine@users.noreply.github.com >
2018-09-30 20:43:11 +02:00
Wayne Witzel III
a57acec43d
Merge pull request #876 from skriss/restic-share-bucket
...
Move restic repos into the main Ark bucket, under restic/
2018-09-28 12:12:45 -04:00
Nolan Brubaker
ed2bca83bd
Merge pull request #869 from shubheksha/fix/786-fix-error-ExternalName-service-restore
...
Fix error when restoring ExternalName services
2018-09-25 16:33:36 -04:00
Steve Kriss
e46e89cb61
have restic share main Ark bucket
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-09-25 13:12:22 -06:00
Steve Kriss
42b54586cd
refactor to make valid dirs part of an object store layout
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-09-25 13:12:22 -06:00
Steve Kriss
8bc7e4f6aa
store backups & restores in backups/, restores/ subdirs in obj storage
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-09-25 09:56:41 -06:00
Shubheksha Jalan
e3232b7eb6
add support for bulk deletion to ark restore delete
...
refactor util methods into a common package
move utility methods into cli package instead of common
rename util.go to common.go
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com >
2018-09-25 20:37:20 +05:30
Shubheksha Jalan
e3222a9e3f
move code dealing with node ports into a separate function
...
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com >
2018-09-25 18:08:57 +05:30
Shubheksha Jalan
d95b18bad8
ignore spec.ports not being there for services of type ExternalName
...
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com >
2018-09-25 01:35:13 +05:30
Shubheksha Jalan
907a9fbdd8
fix error during restore when spec.ports are not found
...
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com >
2018-09-25 01:02:47 +05:30
Steve Kriss
3a60853340
Merge pull request #843 from james-powis/master
...
Discard all SA Token volumes from pod restore
2018-09-19 13:31:15 -06:00
James Powis
a5cb2ce4b7
Change from regex matching default-token to prefix SA-token-
...
Signed-off-by: James Powis <powisj@gmail.com >
2018-09-19 13:06:10 -06:00
Nolan Brubaker
b5e4f85b8c
Merge pull request #834 from skriss/fix-restic-restores
...
get a new metadata accessor after calling backup item actions
2018-09-12 17:13:16 -04: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
Carlisia
69e2f51fbe
Merge pull request #801 from ljakimczuk/master
...
Claim ownership of new AWS volumes by Kubernetes cluster restoring the backup
2018-09-10 14:03:06 -07:00