velero/pkg
Scott Seago aa44cf1c32 Check for nil LastMaintenanceTime in dueForMaintenance (#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>
2020-01-15 12:06:16 -05:00
..
apis/velero/v1 fix typo in download request validation tag (#2009) 2019-10-28 16:00:03 -07:00
archive Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
backup Fix incorrect output log format (#2165) 2020-01-06 09:05:38 -07:00
builder If includeClusterResources is nil/auto, pull in necessary CRDs (#1831) 2019-10-17 12:31:04 -06:00
buildinfo update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
client add better error message when cluster config can't be found 2019-11-08 15:01:12 -07:00
cmd update to k8s 1.17 deps and fix breaks (#2180) 2020-01-10 08:55:58 -08:00
controller Check for nil LastMaintenanceTime in dueForMaintenance (#2200) 2020-01-15 12:06:16 -05:00
discovery Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
features Add features package (#1849) 2019-09-18 10:57:04 -06:00
generated update to k8s 1.17 deps and fix breaks (#2180) 2020-01-10 08:55:58 -08:00
install add ALIBABA_CLOUD_CREDENTIALS_FILE env in deployment and daemonset installation (#2166) 2020-01-06 14:56:23 -08:00
kuberesource update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00
label Validate restore name label length 2019-05-01 10:25:11 -07:00
metrics bump go-hclog and prometheus dependency versions in prep for go modules (#2188) 2020-01-14 11:29:37 -05:00
persistence Extract providers (#1985) 2019-10-22 15:31:27 -07:00
plugin bump go-hclog and prometheus dependency versions in prep for go modules (#2188) 2020-01-14 11:29:37 -05:00
podexec update to k8s 1.17 deps and fix breaks (#2180) 2020-01-10 08:55:58 -08:00
restic Support AWS_PROFILE for restic backups/restore operations (#2096) 2019-12-09 09:46:02 -05:00
restore Assign default CPU/Memory resource value if not present (#2176) 2020-01-09 08:48:35 -07:00
serverstatusrequest use pointer types for metav1.Time fields (#1951) 2019-10-14 10:20:28 -06:00
test If includeClusterResources is nil/auto, pull in necessary CRDs (#1831) 2019-10-17 12:31:04 -06:00
util Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
volume update license headers to Velero contributors (#1302) 2019-03-20 12:32:48 -07:00