fix panic when processing DeleteBackupRequest objs without labels (#1556)

This fix initialises an empty map if the request object's Labels map
is nil, allowing the controller to later add and modify labels on the
object.

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
This commit is contained in:
Adnan Abdulhussein
2019-06-10 10:04:52 -07:00
committed by KubeKween
parent 9e7ff4e3d9
commit d6c60b2dd5
3 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1 @@
fix panic when processing DeleteBackupRequest objects without labels