diff --git a/stable/stolon/Chart.yaml b/stable/stolon/Chart.yaml index bf4790f55d..b771f1beb2 100644 --- a/stable/stolon/Chart.yaml +++ b/stable/stolon/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: stolon -version: 1.5.9 +version: 1.5.10 appVersion: 0.13.0 description: Stolon - PostgreSQL cloud native High Availability. home: https://github.com/sorintlab/stolon diff --git a/stable/stolon/README.md b/stable/stolon/README.md index adc80ad946..207adf823f 100644 --- a/stable/stolon/README.md +++ b/stable/stolon/README.md @@ -64,6 +64,7 @@ Kubernetes is the default store backend. `consul`, `etcdv2` or `etcdv3` can also | `serviceMonitor.scrapeTimeout` | Set to use a different value than the default Prometheus scrape timeout | `nil` | | `job.autoCreateCluster` | Set to `false` to force-disable auto-cluster-creation which may clear pre-existing postgres db data | `true` | | `job.autoUpdateClusterSpec` | Set to `false` to force-disable auto-cluster-spec-update | `true` | +| `job.annotations` | Annotations for Jobs, the value is evaluated as a template. | `{}` | | `clusterSpec` | Stolon cluster spec [reference](https://github.com/sorintlab/stolon/blob/master/doc/cluster_spec.md) | `{}` | | `tls.enabled` | Enable tls support to postgresql | `false` | | `tls.rootCa` | Ca certificate | `""` | diff --git a/stable/stolon/templates/hooks/create-cluster-job.yaml b/stable/stolon/templates/hooks/create-cluster-job.yaml index af5ed072b8..b0b71ddec1 100644 --- a/stable/stolon/templates/hooks/create-cluster-job.yaml +++ b/stable/stolon/templates/hooks/create-cluster-job.yaml @@ -17,6 +17,10 @@ spec: labels: app: {{ template "stolon.fullname" . }} release: {{ .Release.Name }} +{{- if .Values.job.annotations }} + annotations: +{{ toYaml .Values.job.annotations | indent 8 }} +{{- end }} spec: restartPolicy: OnFailure serviceAccountName: {{ template "stolon.serviceAccountName" . }} diff --git a/stable/stolon/templates/hooks/init-db-job.yaml b/stable/stolon/templates/hooks/init-db-job.yaml index a16dd5b8f3..01751d9ddb 100644 --- a/stable/stolon/templates/hooks/init-db-job.yaml +++ b/stable/stolon/templates/hooks/init-db-job.yaml @@ -29,6 +29,10 @@ spec: heritage: {{.Release.Service | quote }} release: {{.Release.Name | quote }} chart: "{{.Chart.Name}}-{{.Chart.Version}}" +{{- if .Values.job.annotations }} + annotations: +{{ toYaml .Values.job.annotations | indent 8 }} +{{- end }} spec: restartPolicy: Never containers: diff --git a/stable/stolon/templates/hooks/update-cluster-spec-job.yaml b/stable/stolon/templates/hooks/update-cluster-spec-job.yaml index 7306cd7653..f1fdf49d2a 100644 --- a/stable/stolon/templates/hooks/update-cluster-spec-job.yaml +++ b/stable/stolon/templates/hooks/update-cluster-spec-job.yaml @@ -17,6 +17,10 @@ spec: labels: app: {{ template "stolon.fullname" . }} release: {{ .Release.Name }} +{{- if .Values.job.annotations }} + annotations: +{{ toYaml .Values.job.annotations | indent 8 }} +{{- end }} spec: restartPolicy: OnFailure serviceAccountName: {{ template "stolon.serviceAccountName" . }} diff --git a/stable/stolon/values.yaml b/stable/stolon/values.yaml index 621546a5c4..4dc6b1d20a 100644 --- a/stable/stolon/values.yaml +++ b/stable/stolon/values.yaml @@ -88,6 +88,7 @@ serviceMonitor: job: autoCreateCluster: true autoUpdateClusterSpec: true + annotations: {} clusterSpec: {} # sleepInterval: 1s