diff --git a/.circleci/values/kratos.yaml b/.circleci/values/kratos.yaml index afb80325e..f06a1231a 100644 --- a/.circleci/values/kratos.yaml +++ b/.circleci/values/kratos.yaml @@ -84,3 +84,5 @@ deployment: args: ["-c", "echo hello, world!"] extraArgs: - --sqa-opt-out + labels: + ory.sh/test: kratos \ No newline at end of file diff --git a/helm/charts/kratos/templates/job-migration.yaml b/helm/charts/kratos/templates/job-migration.yaml index 5b6e9ea29..4efcfeb1c 100644 --- a/helm/charts/kratos/templates/job-migration.yaml +++ b/helm/charts/kratos/templates/job-migration.yaml @@ -9,6 +9,9 @@ metadata: {{- end }} labels: {{ include "kratos.labels" . | indent 4 }} + {{- with .Values.deployment.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} annotations: {{- with .Values.job.annotations }} {{- toYaml . | nindent 4 }} @@ -18,11 +21,17 @@ metadata: helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded" spec: template: - {{- with .Values.job.annotations }} metadata: + {{- with .Values.job.annotations }} annotations: {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} + labels: + app.kubernetes.io/name: {{ include "kratos.fullname" . }}-automigrate + app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.deployment.labels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: