ResourceCollector: When checking for resources set group name for core
The group in the resource is empty, need to set it to core before comparing
@@ -464,7 +464,7 @@ func (r *ResourceCollector) PrepareResourceForApply(
return false, err
}
- // Even if PV isn't specified need to check if the corresponding PV is, so
+ // Even if PV isn't specified need to check if the corresponding PVC is, so
// skip the check here
if len(includeObjects) != 0 && objectType.GetKind() != "PersistentVolume" {
info := stork_api.ObjectInfo{
@@ -476,6 +476,9 @@ func (r *ResourceCollector) PrepareResourceForApply(
Name: metadata.GetName(),
Namespace: metadata.GetNamespace(),
}
+ if info.Group == "" {
+ info.Group = "core"
+ }
if val, present := includeObjects[info]; !present || !val {
return true, nil
}
