[OADP-460] Don't mount cloud provider secret volumes with NoDefaultBackupLocation#662
Conversation
|
azure related (partiallyFailed backups) errors can be ignored until #654 is merged. |
|
/retest |
|
/hold we found some issue with restic pods |
|
/retest |
| if len(dpa.Spec.BackupLocations) == 0 && !dpa.Spec.Configuration.Velero.NoDefaultBackupLocation { | ||
| return false, errors.New("no backupstoragelocations configured, ensure a backupstoragelocation has been configured or use the noDefaultLocationBackupLocation flag") | ||
| if dpa.Spec.Configuration.Velero.NoDefaultBackupLocation { | ||
| if len(dpa.Spec.BackupLocations) != 0 { |
There was a problem hiding this comment.
Not sure this is true, we really are just saying if we have any BSLs defined in the DPA spec that none of them have default: true right?
There was a problem hiding this comment.
after digging, velero install takes the same approach https://github.com/vmware-tanzu/velero/blob/77be862b9c8d4d0b9187a8239059e6ed9b54cd1b/pkg/cmd/cli/install/install.go#L307-L309
so its fine
There was a problem hiding this comment.
We only use install lib for the deployment, so we really can choose our own behavior here. Awaiting merge for more input
There was a problem hiding this comment.
@shubham-pampattiwar this flag is only used in func AllResources which we skipped entirely from using.
There was a problem hiding this comment.
We consumed individually install.Deployments and install.Daemonsets. We may refactor to use AllResources in the future after required restic pod changes are included upstream.
|
/retest |
2 similar comments
|
/retest |
|
/retest |
commit 91fbcd6 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Wed May 11 10:34:18 2022 -0400 added TestDPAReconciler_noDefaultCredentials commit e175757 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 23:58:59 2022 -0400 go fmt commit 7b49d25 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 23:58:48 2022 -0400 restic only mount secretVolume if NoDefaultBackupLocation is found. commit c70f85d Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:51:49 2022 -0400 spec indent update commit d14b22e Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:40:42 2022 -0400 add usage doc commit 2b26e48 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:37:45 2022 -0400 if vsl specified we still need default creds commit 30ac88d Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Mon May 2 10:50:10 2022 -0400 error message change commit 3ed9194 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Mon May 2 10:47:23 2022 -0400 Initial commit of fix for OADP-460.
commit 91fbcd6 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Wed May 11 10:34:18 2022 -0400 added TestDPAReconciler_noDefaultCredentials commit e175757 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 23:58:59 2022 -0400 go fmt commit 7b49d25 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 23:58:48 2022 -0400 restic only mount secretVolume if NoDefaultBackupLocation is found. commit c70f85d Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:51:49 2022 -0400 spec indent update commit d14b22e Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:40:42 2022 -0400 add usage doc commit 2b26e48 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:37:45 2022 -0400 if vsl specified we still need default creds commit 30ac88d Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Mon May 2 10:50:10 2022 -0400 error message change commit 3ed9194 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Mon May 2 10:47:23 2022 -0400 Initial commit of fix for OADP-460.
|
@kaovilai: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
commit 91fbcd6 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Wed May 11 10:34:18 2022 -0400 added TestDPAReconciler_noDefaultCredentials commit e175757 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 23:58:59 2022 -0400 go fmt commit 7b49d25 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 23:58:48 2022 -0400 restic only mount secretVolume if NoDefaultBackupLocation is found. commit c70f85d Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:51:49 2022 -0400 spec indent update commit d14b22e Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:40:42 2022 -0400 add usage doc commit 2b26e48 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Tue May 3 10:37:45 2022 -0400 if vsl specified we still need default creds commit 30ac88d Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Mon May 2 10:50:10 2022 -0400 error message change commit 3ed9194 Author: Tiger Kaovilai <tkaovila@redhat.com> Date: Mon May 2 10:47:23 2022 -0400 Initial commit of fix for OADP-460.
Fixes OADP-460
This is a follow up to #420, #607, #349, #380, #373, and #12