Andy Goldstein
c1bc52eb65
Update gofmt
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-10-30 13:31:03 -04:00
Andy Goldstein
293674c40e
React to upstream spdy executor changes
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-10-30 13:31:03 -04:00
Andy Goldstein
43449885a1
React to move to k8s.io/api
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-10-30 13:30:27 -04:00
Akhil Thampy
1ac0303283
Fix #137 . Remove clock from volume_snapshot_action.
...
Signed-off-by: Akhil Thampy <akhilthampy@yahoo.com >
2017-10-26 13:53:52 -05:00
Andy Goldstein
901f8e1302
Add pod exec backup hooks
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-10-20 10:20:59 -04:00
Devan Goodwin
ed0194c09b
Restructure backups for resource prioritization.
...
Previously the directory structure separated resources depending on
whether or not they were cluster or namespace scoped. All cluster
resources were restored first, then all namespace resources. Priority
did not apply across both and you could not order any namespace
resources before any cluster resources.
This restructure sorts firstly on resource type.
resources/serviceaccounts/namespaces/ns1.json
resources/nodes/cluster/node1.json
This will break old backups as the format is no longer consistent as
announced on the Google group.
Signed-off-by: Devan Goodwin <dgoodwin@redhat.com >
2017-10-17 08:49:05 -03:00
Steve Kriss
4085e473e1
additional deployment/networkpolicy cases for TestBackupResource
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-11 15:05:12 -07:00
Steve Kriss
07b33ace57
add --include-cluster-resources flag to backup create cmd
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-11 15:05:12 -07:00
Steve Kriss
9438a8670a
when backing up PVCs, also back up claimed PVs
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-11 09:54:57 -07:00
Steve Kriss
fa427ebcfd
switch to logrus for per-backup/restore logs
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-10 14:11:21 -07:00
Steve Kriss
82655b8359
tweak volume snapshot action logging messages
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-10 11:10:50 -07:00
ashish-amarnath
6dc81b42f5
Merge branch 'master' into support-multi-az-pvs
...
Signed-off-by: Ashish Amarnath <ashish.amarnath@gmail.com >
2017-10-06 23:24:41 -07:00
Ashish Amarnath
9fc9dbb413
Preserve PV's AZ info when snapshotting and restoring PVs.
...
- Read PV's AZ info from fault-domain label of the PV object for snapshotting.
- Store PV's AZ info in the VolumeInfo.
- Add tests for reading the label from the PV object.
- Remove availability zone validation in AWS and GCP BlockStorageAdaptor.
- Add volumeAZ as a parameter to methods in the BlockStorageAdapter interface.
- Get AZ from VolumeInfo when restoring PV snapshot.
- Remove references to PV availability zone in docs.
Signed-off-by: Ashish Amarnath <ashish.amarnath@gmail.com >
2017-10-06 23:24:41 -07:00
Steve Kriss
914165095a
switch logging to logrus and errors to pkg/errors
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-10-05 08:49:33 -07:00
Steve Kriss
907ae6c5b0
move groupresource resolution into discovery helper
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-09-11 14:41:50 -07:00
Andy Goldstein
3bb02ac949
Use ioutil.Discard in unit test
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-09-11 15:40:49 -04:00
Andy Goldstein
71fadf381e
Clarify Backup() param names
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-09-11 15:40:49 -04:00
Andy Goldstein
a583f22ea9
Add ActionContext so backup actions can log
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-09-11 15:40:48 -04:00
Andy Goldstein
9848a7a55b
Save backup log file to object storage
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-09-11 15:40:48 -04:00
Steve Kriss
768aed4ddd
make --snapshot-volumes, --restore-volumes optional with sensible default behavior based on PVProvider existence
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-08-23 09:47:52 -07:00
Steve Kriss
ebc06fd632
make PVProvider optional in server config; disallow snap/restore PVs when not provided
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-08-23 09:46:15 -07:00
Steve Kriss
aff57e0571
switch to int64 for iops val
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2017-08-14 09:42:43 -07:00
Andy Goldstein
2fe501f527
Initial commit
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com >
2017-08-02 13:27:17 -04:00