From e769418ecf73d77681cfb1a548e03158c9d4da51 Mon Sep 17 00:00:00 2001 From: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> Date: Wed, 26 Feb 2025 09:04:53 +0100 Subject: [PATCH] add legacy labels Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> --- functions/onprem/orborus/orborus.go | 2 ++ functions/onprem/worker/worker.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/functions/onprem/orborus/orborus.go b/functions/onprem/orborus/orborus.go index 15baf03c..3f07f60e 100755 --- a/functions/onprem/orborus/orborus.go +++ b/functions/onprem/orborus/orborus.go @@ -1059,6 +1059,8 @@ func deployK8sWorker(image string, identifier string, env []string) error { // "app.kubernetes.io/version": "", "app.kubernetes.io/part-of": "shuffle", "app.kubernetes.io/managed-by": "shuffle-orborus", + // Keep legacy labels for backward compatibility + "container": "shuffle-worker", } matchLabels := map[string]string{ diff --git a/functions/onprem/worker/worker.go b/functions/onprem/worker/worker.go index 9e319796..ed376797 100644 --- a/functions/onprem/worker/worker.go +++ b/functions/onprem/worker/worker.go @@ -497,6 +497,8 @@ func deployk8sApp(image string, identifier string, env []string) error { // "app.kubernetes.io/version": "", "app.kubernetes.io/part-of": "shuffle", "app.kubernetes.io/managed-by": "shuffle-worker", + // Keep legacy labels for backward compatibility + "app": name, } matchLabels := map[string]string{