@@ -38,7 +38,7 @@ func TestPodMemoryTarget(t *testing.T) {
3838 ObjectMeta : metav1.ObjectMeta {
3939 GenerateName : "test-" ,
4040 Namespace : "testns" ,
41- Labels : map [string ]string {"olm.pod-spec-hash" : "b3TgxOZKR9GWI3HsZUGul7EMYUKpXBazgJaBy2 " , "olm.managed" : "true" },
41+ Labels : map [string ]string {"olm.pod-spec-hash" : "cBESV2Miwqi3TX1KELgXItd7j206e4q6b21BnP " , "olm.managed" : "true" },
4242 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
4343 },
4444 Spec : corev1.PodSpec {
@@ -80,9 +80,6 @@ func TestPodMemoryTarget(t *testing.T) {
8080 corev1 .ResourceCPU : resource .MustParse ("10m" ),
8181 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
8282 },
83- Limits : corev1.ResourceList {
84- corev1 .ResourceCPU : resource .MustParse ("2" ),
85- },
8683 },
8784 SecurityContext : & corev1.SecurityContext {
8885 ReadOnlyRootFilesystem : ptr .To (false ),
@@ -113,7 +110,7 @@ func TestPodMemoryTarget(t *testing.T) {
113110 ObjectMeta : metav1.ObjectMeta {
114111 GenerateName : "test-" ,
115112 Namespace : "testns" ,
116- Labels : map [string ]string {"olm.pod-spec-hash" : "6I8q4ntU0mg0YDRUFqE4iTcpWAB36q6eHFwWhd " , "olm.managed" : "true" },
113+ Labels : map [string ]string {"olm.pod-spec-hash" : "22OBIOEoFxFjed27eJvvYzqL0TfdXsuapKoxsE " , "olm.managed" : "true" },
117114 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
118115 },
119116 Spec : corev1.PodSpec {
@@ -156,9 +153,7 @@ func TestPodMemoryTarget(t *testing.T) {
156153 corev1 .ResourceCPU : resource .MustParse ("10m" ),
157154 corev1 .ResourceMemory : resource .MustParse ("5Mi" ),
158155 },
159- Limits : corev1.ResourceList {
160- corev1 .ResourceCPU : resource .MustParse ("2" ),
161- },
156+ Limits : corev1.ResourceList {},
162157 },
163158 SecurityContext : & corev1.SecurityContext {
164159 ReadOnlyRootFilesystem : ptr .To (false ),
@@ -214,7 +209,7 @@ func TestPodExtractContent(t *testing.T) {
214209 ObjectMeta : metav1.ObjectMeta {
215210 GenerateName : "test-" ,
216211 Namespace : "testns" ,
217- Labels : map [string ]string {"olm.pod-spec-hash" : "b3TgxOZKR9GWI3HsZUGul7EMYUKpXBazgJaBy2 " , "olm.managed" : "true" },
212+ Labels : map [string ]string {"olm.pod-spec-hash" : "cBESV2Miwqi3TX1KELgXItd7j206e4q6b21BnP " , "olm.managed" : "true" },
218213 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
219214 },
220215 Spec : corev1.PodSpec {
@@ -256,9 +251,6 @@ func TestPodExtractContent(t *testing.T) {
256251 corev1 .ResourceCPU : resource .MustParse ("10m" ),
257252 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
258253 },
259- Limits : corev1.ResourceList {
260- corev1 .ResourceCPU : resource .MustParse ("2" ),
261- },
262254 },
263255 SecurityContext : & corev1.SecurityContext {
264256 ReadOnlyRootFilesystem : ptr .To (false ),
@@ -293,7 +285,7 @@ func TestPodExtractContent(t *testing.T) {
293285 ObjectMeta : metav1.ObjectMeta {
294286 GenerateName : "test-" ,
295287 Namespace : "testns" ,
296- Labels : map [string ]string {"olm.pod-spec-hash" : "8kD3A1vMnCYXEz5zdY2TUF5zWrKTiKVLPSUcRu " , "olm.managed" : "true" },
288+ Labels : map [string ]string {"olm.pod-spec-hash" : "30fzEky6rWPSaUHUtTN3mbl0SvE2PryXPIr090 " , "olm.managed" : "true" },
297289 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
298290 },
299291 Spec : corev1.PodSpec {
@@ -380,9 +372,6 @@ func TestPodExtractContent(t *testing.T) {
380372 corev1 .ResourceCPU : resource .MustParse ("10m" ),
381373 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
382374 },
383- Limits : corev1.ResourceList {
384- corev1 .ResourceCPU : resource .MustParse ("2" ),
385- },
386375 },
387376 SecurityContext : & corev1.SecurityContext {
388377 ReadOnlyRootFilesystem : ptr .To (true ),
@@ -417,7 +406,7 @@ func TestPodExtractContent(t *testing.T) {
417406 ObjectMeta : metav1.ObjectMeta {
418407 GenerateName : "test-" ,
419408 Namespace : "testns" ,
420- Labels : map [string ]string {"olm.pod-spec-hash" : "8OkzMFWKKYyt5gqJvM01VuNmlSzzLXymyPrXVF " , "olm.managed" : "true" },
409+ Labels : map [string ]string {"olm.pod-spec-hash" : "57eMKS6v8du5evWOTeBJEFYx7r5udVxvhEQpLB " , "olm.managed" : "true" },
421410 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
422411 },
423412 Spec : corev1.PodSpec {
@@ -506,9 +495,6 @@ func TestPodExtractContent(t *testing.T) {
506495 corev1 .ResourceCPU : resource .MustParse ("10m" ),
507496 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
508497 },
509- Limits : corev1.ResourceList {
510- corev1 .ResourceCPU : resource .MustParse ("2" ),
511- },
512498 },
513499 SecurityContext : & corev1.SecurityContext {
514500 ReadOnlyRootFilesystem : ptr .To (true ),
@@ -536,7 +522,7 @@ func TestPodExtractContent(t *testing.T) {
536522 ObjectMeta : metav1.ObjectMeta {
537523 GenerateName : "test-" ,
538524 Namespace : "testns" ,
539- Labels : map [string ]string {"olm.pod-spec-hash" : "bDc9JN6M7lrPZ9WAke2iCgiMSvhxg1iOz28MCI " , "olm.managed" : "true" },
525+ Labels : map [string ]string {"olm.pod-spec-hash" : "bfNQa9OTbkeciTpFoCgpKhNENGjVjY61PYAoYA " , "olm.managed" : "true" },
540526 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
541527 },
542528 Spec : corev1.PodSpec {
@@ -578,9 +564,6 @@ func TestPodExtractContent(t *testing.T) {
578564 corev1 .ResourceCPU : resource .MustParse ("10m" ),
579565 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
580566 },
581- Limits : corev1.ResourceList {
582- corev1 .ResourceCPU : resource .MustParse ("2" ),
583- },
584567 },
585568 ImagePullPolicy : image .InferImagePullPolicy ("image" ),
586569 SecurityContext : & corev1.SecurityContext {
@@ -622,7 +605,7 @@ func TestPodExtractContent(t *testing.T) {
622605 ObjectMeta : metav1.ObjectMeta {
623606 GenerateName : "test-" ,
624607 Namespace : "testns" ,
625- Labels : map [string ]string {"olm.pod-spec-hash" : "aDF279JF7kYO6HMGYcKsekOgv8APQPIuVKJuAP " , "olm.managed" : "true" },
608+ Labels : map [string ]string {"olm.pod-spec-hash" : "5CPn3qG7EdDS0mOX7AazM9Tt1RBtR6bjjMmmep " , "olm.managed" : "true" },
626609 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
627610 },
628611 Spec : corev1.PodSpec {
@@ -713,9 +696,6 @@ func TestPodExtractContent(t *testing.T) {
713696 corev1 .ResourceCPU : resource .MustParse ("10m" ),
714697 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
715698 },
716- Limits : corev1.ResourceList {
717- corev1 .ResourceCPU : resource .MustParse ("2" ),
718- },
719699 },
720700 ImagePullPolicy : image .InferImagePullPolicy ("image" ),
721701 SecurityContext : & corev1.SecurityContext {
@@ -757,7 +737,7 @@ func TestPodExtractContent(t *testing.T) {
757737 ObjectMeta : metav1.ObjectMeta {
758738 GenerateName : "test-" ,
759739 Namespace : "testns" ,
760- Labels : map [string ]string {"olm.pod-spec-hash" : "1NOYbt10A4JQuURRyUwEHdnJgZ09GQnCCPm9Xv " , "olm.managed" : "true" },
740+ Labels : map [string ]string {"olm.pod-spec-hash" : "adSLBZw1o1geKStnSKaiQEubBnN4eqkHabCyHs " , "olm.managed" : "true" },
761741 Annotations : map [string ]string {"cluster-autoscaler.kubernetes.io/safe-to-evict" : "true" },
762742 },
763743 Spec : corev1.PodSpec {
@@ -850,9 +830,6 @@ func TestPodExtractContent(t *testing.T) {
850830 corev1 .ResourceCPU : resource .MustParse ("10m" ),
851831 corev1 .ResourceMemory : resource .MustParse ("50Mi" ),
852832 },
853- Limits : corev1.ResourceList {
854- corev1 .ResourceCPU : resource .MustParse ("2" ),
855- },
856833 },
857834 ImagePullPolicy : image .InferImagePullPolicy ("image" ),
858835 SecurityContext : & corev1.SecurityContext {
0 commit comments