Skip to content

Commit

Permalink
fix: add labels to kratos migration (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere committed Dec 10, 2021
1 parent 5837c28 commit 771d597
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .circleci/values/kratos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ deployment:
args: ["-c", "echo hello, world!"]
extraArgs:
- --sqa-opt-out
labels:
ory.sh/test: kratos
13 changes: 11 additions & 2 deletions helm/charts/kratos/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 771d597

Please sign in to comment.