From dee10442dd83745baf89b02b7815ff0138294bd9 Mon Sep 17 00:00:00 2001 From: Jacob See <5027680+jacobsee@users.noreply.github.com> Date: Sun, 7 Dec 2025 13:37:55 -0800 Subject: [PATCH] Remove pod label length check in oc debug test Causes failures in 1.35 since PodTopologyLabelsAdmission has graduated to v1beta1 and is enabled by default, adding extra labels to pods. --- test/extended/cli/debug.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/extended/cli/debug.go b/test/extended/cli/debug.go index ee8746ec3eb9..cbce80161ba1 100644 --- a/test/extended/cli/debug.go +++ b/test/extended/cli/debug.go @@ -313,7 +313,6 @@ spec: o.Expect(err).NotTo(o.HaveOccurred()) o.Expect(pods.Items).To(o.HaveLen(1)) o.Expect(pods.Items[0].Labels).To(o.HaveKeyWithValue("debug.openshift.io/managed-by", "oc-debug")) - o.Expect(pods.Items[0].Labels).To(o.HaveLen(1)) oc.AsAdmin().Run("delete").Args("pod", pods.Items[0].Name, "-n", ns).Output() @@ -336,6 +335,5 @@ spec: pods, err = oc.AdminKubeClient().CoreV1().Pods(ns).List(context.TODO(), metav1.ListOptions{LabelSelector: "debug.openshift.io/managed-by=oc-debug"}) o.Expect(pods.Items).To(o.HaveLen(1)) o.Expect(pods.Items[0].Labels).To(o.HaveKeyWithValue("debug.openshift.io/managed-by", "oc-debug")) - o.Expect(pods.Items[0].Labels).To(o.HaveLen(1)) }) })