1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Replaced UID with Namespace for duplicate check, added tests (+ cleanup)

This commit is contained in:
Sebastiaan Tammer
2019-05-25 11:18:11 +02:00
parent d1c6f3f709
commit 023a2f2a47
3 changed files with 40 additions and 17 deletions

View File

@@ -73,7 +73,7 @@ func GetNormalPodOwnerRefList() []metav1.OwnerReference {
// GetReplicaSetOwnerRefList returns the ownerRef needed for replicaset pod.
func GetReplicaSetOwnerRefList() []metav1.OwnerReference {
ownerRefList := make([]metav1.OwnerReference, 0)
ownerRefList = append(ownerRefList, metav1.OwnerReference{Kind: "ReplicaSet", APIVersion: "v1"})
ownerRefList = append(ownerRefList, metav1.OwnerReference{Kind: "ReplicaSet", APIVersion: "v1", Name: "replicateset-1"})
return ownerRefList
}