From 9002160e15d4848c7561226672cbe353c262cdac Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Sun, 12 Jan 2025 23:13:58 -0800 Subject: [PATCH] Hack label restriction on including `/` in values --- tests/fixture/tmpnet/kube.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/fixture/tmpnet/kube.go b/tests/fixture/tmpnet/kube.go index a1675e4dbbf2..a280c0f47791 100644 --- a/tests/fixture/tmpnet/kube.go +++ b/tests/fixture/tmpnet/kube.go @@ -74,6 +74,10 @@ func NewNodeStatefulSet( "app": name, } for label, value := range labels { + // TODO(marun) Avoid requiring this hack by using annotations instead of labels + if label == "repo" { + label = strings.ReplaceAll(label, "/", "_") + } podLabels[label] = value }