From ba810184b07a240b35873a537db327e9af63af8f Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 7 Nov 2023 15:59:27 +1300 Subject: [PATCH] fix: labels cannot contain "/" --- infra/util/labels.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/util/labels.ts b/infra/util/labels.ts index c8e055143..9fa8dc410 100644 --- a/infra/util/labels.ts +++ b/infra/util/labels.ts @@ -22,7 +22,8 @@ export function defaultLabels( 'app.kubernetes.io/part-of': partOf, 'app.kubernetes.io/managed-by': 'cdk8s', // TODO these are not "well-known" maybe we should move them into the linz namespace? - 'app.kubernetes.io/git-repository': 'linz/topo-workflows', + // Labels cannot include "/" so replace with "__" + 'app.kubernetes.io/git-repository': 'linz__topo-workflows', 'app.kubernetes.io/git-hash': getGitBuildInfo().hash, 'app.kubernetes.io/git-version': getGitBuildInfo().version, 'app.kubernetes.io/build-id': getGitBuildInfo().buildId,