Skip to content

Commit

Permalink
Hack label restriction on including / in values
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava committed Jan 13, 2025
1 parent 2e99c4d commit 01d128b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fixture/tmpnet/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 01d128b

Please sign in to comment.