From 01d128b2eb4d1926264d9363418b1220c9b13549 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..5fb8685aca99 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" { + value = strings.ReplaceAll(value, "/", "_") + } podLabels[label] = value }