velero/pkg/controller
JenTing Hsiao 9dd158d13d
feat: support configure BSL CR to indicate which one is the default (#3092)
* Add default field to BSL CRD

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Add a new flag `--default` under `velero backup-location create`

add a new flag `--default` under `velero backup-location create`
to specify this new location to be the new default BSL.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Add a new default field under `velero backup-location get`

add a new default field under `velero backup-location get` to indicate
which BSL is the default one.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Add a new sub-command and flag under `velero backup-location`

Add a new sub-command called `velero backup-location set` sub-command
and a new flag `velero backup-cation set --default` to configure which
BSL is the default one.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Add new flag to get the default backup-location

Add a new flag `--default` under `velero backup-location get`
to displays the current default BSL.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Configures default BSL in BSL controller

When upgrade the BSL CRDs, none of the BSL has been labeled as default.
Sets the BSL default field to true if the BSL name matches to the default BSL setting.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Configures the default BSL in BSL controller for velero upgrade

When upgrade the BSL CRDs, none of the BSL be marked as the default.
Sets the BSL `.spec.default: true` if the BSL name matches against the
`velero server --default-backup-storage-location`.

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Add unit test to test default BSL behavior

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Update check which one is the default BSL in backup/backup_sync/restore controller

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Add changelog

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>

* Update docs locations.md and upgrade-to-1.6.md

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
2020-12-08 16:38:29 -05:00
..
backup_controller.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
backup_controller_test.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
backup_deletion_controller.go Don't fail backup deletion if downloading tarball fails (#2993) 2020-11-30 10:58:34 -08:00
backup_deletion_controller_test.go Don't fail backup deletion if downloading tarball fails (#2993) 2020-11-30 10:58:34 -08:00
backup_storage_location_controller.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
backup_storage_location_controller_test.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
backup_sync_controller.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
backup_sync_controller_test.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
backup_tracker.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
backup_tracker_test.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
constants.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
download_request_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
download_request_controller_test.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
gc_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
gc_controller_test.go Convert manifests + BSL api client to kubebuilder (#2561) 2020-06-24 12:55:18 -04:00
generic_controller.go wait for informer caches to sync before running controllers 2020-03-03 15:55:17 -07:00
interface.go update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
pod_volume_backup_controller.go Modify function name typo (#3106) 2020-11-23 11:28:34 -05:00
pod_volume_backup_controller_test.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
pod_volume_restore_controller.go Adding fix for restic init container index on restores. (#3011) 2020-10-21 15:15:03 -07:00
pod_volume_restore_controller_test.go Adding fix for restic init container index on restores. (#3011) 2020-10-21 15:15:03 -07:00
restic_repository_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
restore_controller.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
restore_controller_test.go feat: support configure BSL CR to indicate which one is the default (#3092) 2020-12-08 16:38:29 -05:00
schedule_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
schedule_controller_test.go pass annotations from scheduler to created backup (#3067) 2020-11-19 13:19:42 -08:00
server_status_request_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
server_status_request_controller_test.go Migrate ServerStatusRequest controller and resource to kubebuilder (#2838) 2020-09-01 14:15:23 -07:00
suite_test.go Add a BSL controller to handle validation + update BSL status phase (#2674) 2020-07-14 17:47:00 -04:00