velero/pkg/backup
Anshul Chandra 4e12b08953 Validate restore name label length
Velero should handle cases when the label length exceeds 63 characters.

- if the length of the backup/restore name is <= 63 characters, use it as the value of the label
- if it's > 63 characters, take the SHA256 hash of the name. the value of
  the label will be the first 57 characters of the backup/restore name
  plus the first six characters of the SHA256 hash.

Fixes heptio#1021

Signed-off-by: Anshul Chandra <anshulc@vmware.com>
2019-05-01 10:25:11 -07:00
..
mocks update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
backup.go add PartiallyFailed phase for backups, log+continue on errors (#1386) 2019-04-26 09:14:26 -07:00
backup_pv_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
backup_pv_action_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
backup_test.go add PartiallyFailed phase for backups, log+continue on errors (#1386) 2019-04-26 09:14:26 -07:00
delete_helpers.go Validate restore name label length 2019-05-01 10:25:11 -07:00
group_backupper.go add PartiallyFailed phase for backups, log+continue on errors (#1386) 2019-04-26 09:14:26 -07:00
group_backupper_test.go rename BlockStore to VolumeSnapshotter 2019-03-27 14:55:28 -06:00
item_backupper.go add PartiallyFailed phase for backups, log+continue on errors (#1386) 2019-04-26 09:14:26 -07:00
item_backupper_test.go remove VolumeBackupInfo from API pkg (#1388) 2019-04-24 13:16:03 -07:00
item_hook_handler.go remove legacy hook annotation support 2019-04-15 10:17:03 -06:00
item_hook_handler_test.go remove legacy hook annotation support 2019-04-15 10:17:03 -06:00
mocks_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
pod_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
pod_action_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
pvc_snapshot_tracker.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
rbac.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
request.go Rename Ark to Velero!!! 2019-02-04 17:35:22 -05:00
resource_backupper.go add PartiallyFailed phase for backups, log+continue on errors (#1386) 2019-04-26 09:14:26 -07:00
resource_backupper_test.go rename BlockStore to VolumeSnapshotter 2019-03-27 14:55:28 -06:00
service_account_action.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
service_account_action_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00