add support for replicaset backup/migration
@@ -125,6 +125,7 @@ func resourceToBeCollected(resource metav1.APIResource, grp schema.GroupVersion,
"Template",
"CronJob",
"ResourceQuota",
+ "ReplicaSet",
"LimitRange":
return true
case "Job":
@@ -370,7 +371,7 @@ func (r *ResourceCollector) pruneOwnedResources(
collect = false
break
}
- if objectType.GetKind() != "Deployment" && objectType.GetKind() != "StatefulSet" {
+ if objectType.GetKind() != "Deployment" && objectType.GetKind() != "StatefulSet" && objectType.GetKind() != "ReplicaSet" {
continue
}
