add legacy labels

Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
This commit is contained in:
Pascal Sthamer
2025-02-26 09:04:53 +01:00
parent 80aa1a3fd2
commit e769418ecf
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -1059,6 +1059,8 @@ func deployK8sWorker(image string, identifier string, env []string) error {
// "app.kubernetes.io/version": "", // "app.kubernetes.io/version": "",
"app.kubernetes.io/part-of": "shuffle", "app.kubernetes.io/part-of": "shuffle",
"app.kubernetes.io/managed-by": "shuffle-orborus", "app.kubernetes.io/managed-by": "shuffle-orborus",
// Keep legacy labels for backward compatibility
"container": "shuffle-worker",
} }
matchLabels := map[string]string{ matchLabels := map[string]string{
+2
View File
@@ -497,6 +497,8 @@ func deployk8sApp(image string, identifier string, env []string) error {
// "app.kubernetes.io/version": "", // "app.kubernetes.io/version": "",
"app.kubernetes.io/part-of": "shuffle", "app.kubernetes.io/part-of": "shuffle",
"app.kubernetes.io/managed-by": "shuffle-worker", "app.kubernetes.io/managed-by": "shuffle-worker",
// Keep legacy labels for backward compatibility
"app": name,
} }
matchLabels := map[string]string{ matchLabels := map[string]string{