velero/pkg/controller
codegold79 fbd6bcf504
Validate namespace in velero backup create command (#4057)
* Add namespace validation in the client

Signed-off-by: F. Gold <fgold@vmware.com>

* Add namespace validation in the backup controller

Signed-off-by: F. Gold <fgold@vmware.com>

* Add changelog for PR 4057

Signed-off-by: F. Gold <fgold@vmware.com>

* Update Copyright notice

Signed-off-by: F. Gold <fgold@vmware.com>

* Update include_excludes_test.go to follow Go standards and be easier to read

Signed-off-by: F. Gold <fgold@vmware.com>

* Add unit tests for namespace validation functions

Signed-off-by: F. Gold <fgold@vmware.com>

* Make changes per review comments

- use one set of namespace validation logic instead of writing two
- remove duplicate namespace validation functions and tests
- add namespace validation tests in includes_excludes_test.go

Signed-off-by: F. Gold <fgold@vmware.com>

* Return all ns validation err msgs as error list

Signed-off-by: F. Gold <fgold@vmware.com>

* Make error message more clear

Signed-off-by: F. Gold <fgold@vmware.com>
2021-09-03 11:03:35 -04:00
..
backup_controller.go Validate namespace in velero backup create command (#4057) 2021-09-03 11:03:35 -04:00
backup_controller_test.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00
backup_deletion_controller.go Delete residual file caused by network interruption and so on. Fixes #3204 (#3241) 2021-06-02 16:41:50 -04:00
backup_deletion_controller_test.go Validate namespace in velero backup create command (#4057) 2021-09-03 11:03:35 -04:00
backup_storage_location_controller.go Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
backup_storage_location_controller_test.go Replace NewObjectBackupStore with interface (#3329) 2021-02-08 13:04:08 -05:00
backup_sync_controller.go Replace NewObjectBackupStore with interface (#3329) 2021-02-08 13:04:08 -05:00
backup_sync_controller_test.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08: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 Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
download_request_controller_test.go Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
gc_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
gc_controller_test.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08: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 Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -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 Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
pod_volume_restore_controller_test.go Modify InitContainer checking function that potentially incurs error (#3198) 2021-02-08 13:26:56 -05:00
restic_repository_controller.go Centralize + rename controller names and list (#2936) 2020-10-06 13:58:56 -04:00
restore_controller.go Delete residual file caused by network interruption and so on. Fixes #3204 (#3241) 2021-06-02 16:41:50 -04:00
restore_controller_test.go Pass configured BSL credential to plugin via config (#3442) 2021-03-04 13:43:15 -08: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 Convert DownloadRequest resource/controller to kubebuilder (#3004) 2021-03-01 13:28:46 -05:00
server_status_request_controller_test.go fix(tests): make tests pass 2021-01-26 13:06:27 +02:00
suite_test.go Use controller-runtime client to get restic secrets (#3320) 2021-02-18 10:30:52 -08:00