fix labels map initialization on pgbasebackups
@@ -275,11 +275,14 @@ func getBackupParams(name string, request *msgs.CreateBackupRequest, ns string)
return newInstance, err
}
+ labels := make(map[string]string)
+
newInstance = &crv1.Pgbackup{
ObjectMeta: meta_v1.ObjectMeta{
Name: name,
},
Spec: spec,
+ Labels: labels,
}
return newInstance, nil
}
