Commit 6d41edde authored by Tiago Posse's avatar Tiago Posse

Add annotations to the migrations jobspec

parent d9acec6f
Pipeline #160325816 passed with stages
in 9 minutes and 13 seconds
---
title: Add an annotations support to the migrations job template.
merge_request: 1423
author: Tiago Posse
type: other
......@@ -11,6 +11,12 @@ spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
{{- if .Values.annotations }}
annotations:
{{- range $key, $value := .Values.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app: {{ template "name" . }}
release: {{ .Release.Name }}
......
......@@ -18,6 +18,9 @@ init:
# Tolerations for pod scheduling
tolerations: []
# Annotations for the job
annotations: {}
enabled: true
initialRootPassword: {}
redis:
......
......@@ -43,6 +43,7 @@ Table below contains all the possible charts configurations that can be supplied
| `init.tag` | initContainer image tag | `latest` |
| `enabled` | Migrations enable flag | `true` |
| `tolerations` | Toleration labels for pod assignment | `[]` |
| `annotations` | Annotations for the job spec | `{}` |
| `redis.serviceName` | Redis service name | `redis` |
| `psql.serviceName` | Name of Service providing PostgreSQL | `release-postgresql` |
| `psql.password.secret` | psql secret | `gitlab-postgres` |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment