Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for nil LastMaintenanceTime in dueForMaintenance (vmware-tanzu#…
…2200) * Check for nil LastMaintenanceTime in dueForMaintenance ResticRepository.dueForMaintenance causes a panic in the velero pod ("invalid memory address or nil pointer dereference") if repository.Status.LastMaintenanceTime is nil. This fix returns 'true' if it's nil, so the repository is due for maintenance if LastMaintenanceTime is nil *or* the time elapsed since the last maintenance is greater than repository.Spec.MaintenanceFrequency.Duration Signed-off-by: Scott Seago <sseago@redhat.com> * changelog for PR#2200 Signed-off-by: Scott Seago <sseago@redhat.com>
- Loading branch information