From 1b7964838a53a741de61ea61d7879495005b0975 Mon Sep 17 00:00:00 2001 From: Ben Eggers Date: Thu, 2 May 2024 13:10:48 -0700 Subject: [PATCH] [BUG] Put annotations on the job not the template --- k8s/distributed-chroma/templates/log-migration.yaml | 8 ++++---- k8s/distributed-chroma/templates/sysdb-migration.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/k8s/distributed-chroma/templates/log-migration.yaml b/k8s/distributed-chroma/templates/log-migration.yaml index 6f2a186b737..2323b084294 100644 --- a/k8s/distributed-chroma/templates/log-migration.yaml +++ b/k8s/distributed-chroma/templates/log-migration.yaml @@ -3,15 +3,15 @@ kind: Job metadata: name: logservice-migration namespace: {{ .Values.namespace }} + annotations: + {{ range .Values.sysdbMigration.annotations }} + {{ .name }}: {{ .value }} + {{ end }} spec: template: metadata: labels: app: logservice-migration - annotations: - {{ range .Values.sysdbMigration.annotations }} - {{ .name }}: {{ .value }} - {{ end }} spec: restartPolicy: OnFailure containers: diff --git a/k8s/distributed-chroma/templates/sysdb-migration.yaml b/k8s/distributed-chroma/templates/sysdb-migration.yaml index ec96a311b57..dbdad035075 100644 --- a/k8s/distributed-chroma/templates/sysdb-migration.yaml +++ b/k8s/distributed-chroma/templates/sysdb-migration.yaml @@ -3,15 +3,15 @@ kind: Job metadata: name: sysdb-migration namespace: {{ .Values.namespace }} + annotations: + {{ range .Values.sysdbMigration.annotations }} + {{ .name }}: {{ .value }} + {{ end }} spec: template: metadata: labels: app: sysdb-migration - annotations: - {{ range .Values.sysdbMigration.annotations }} - {{ .name }}: {{ .value }} - {{ end }} spec: restartPolicy: OnFailure containers: