diff --git a/stable/stolon/Chart.yaml b/stable/stolon/Chart.yaml index 68f2fec34e..c622eff55e 100644 --- a/stable/stolon/Chart.yaml +++ b/stable/stolon/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: stolon -version: 1.5.4 +version: 1.5.5 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 7232dba6ce..ac4ed42bf8 100644 --- a/stable/stolon/README.md +++ b/stable/stolon/README.md @@ -25,10 +25,11 @@ Kubernetes is the default store backend. `consul`, `etcdv2` or `etcdv3` can also | Parameter | Description | Default | | --------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------ | -| `clusterName` | `stolon` cluster name | `nil` | +| `clusterName` | `stolon` cluster name | `nil` | | `image.repository` | `stolon` image repository | `sorintlab/stolon` | | `image.tag` | `stolon` image tag | `v0.13.0-pg10` | | `image.pullPolicy` | `stolon` image pull policy | `IfNotPresent` | +| `image.pullSecrets` | `stolon` image pull secrets as an array | `[]` (does not add image pull secrets to deployed pods) | | `etcdImage.repository` | `etcd` image repository | `k8s.gcr.io/etcd-amd64` | | `etcdImage.tag` | `etcd` image tag | `2.3.7` | | `etcdImage.pullPolicy` | `etcd` image pull policy | `IfNotPresent` | diff --git a/stable/stolon/templates/keeper-statefulset.yaml b/stable/stolon/templates/keeper-statefulset.yaml index 5f5f7b9a70..685f40d87b 100644 --- a/stable/stolon/templates/keeper-statefulset.yaml +++ b/stable/stolon/templates/keeper-statefulset.yaml @@ -35,6 +35,10 @@ spec: {{- if .Values.keeper.fsGroup }} securityContext: fsGroup: {{ .Values.keeper.fsGroup }} +{{- end }} +{{- if .Values.image.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .values.image.pullSecrets | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} diff --git a/stable/stolon/templates/proxy-deployment.yaml b/stable/stolon/templates/proxy-deployment.yaml index 5fea0e196a..d5e1591b48 100644 --- a/stable/stolon/templates/proxy-deployment.yaml +++ b/stable/stolon/templates/proxy-deployment.yaml @@ -30,6 +30,10 @@ spec: priorityClassName: "{{ .Values.proxy.priorityClassName }}" {{- end }} serviceAccountName: {{ template "stolon.serviceAccountName" . }} +{{- if .Values.image.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .values.image.pullSecrets | indent 8 }} +{{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/stable/stolon/templates/sentinel-deployment.yaml b/stable/stolon/templates/sentinel-deployment.yaml index b9d6559daf..b1842488a8 100644 --- a/stable/stolon/templates/sentinel-deployment.yaml +++ b/stable/stolon/templates/sentinel-deployment.yaml @@ -31,6 +31,10 @@ spec: priorityClassName: "{{ .Values.sentinel.priorityClassName }}" {{- end }} serviceAccountName: {{ template "stolon.serviceAccountName" . }} +{{- if .Values.image.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.image.pullSecrets | indent 8 }} +{{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/stable/stolon/values.yaml b/stable/stolon/values.yaml index 1bd8fe2313..0b24c9cdcf 100644 --- a/stable/stolon/values.yaml +++ b/stable/stolon/values.yaml @@ -3,6 +3,9 @@ image: repository: sorintlab/stolon tag: v0.13.0-pg10 pullPolicy: IfNotPresent + ## Add secrets manually via kubectl on kubernetes cluster and reference here + # pullSecrets: + # - name: "myKubernetesSecret" # used by create-cluster-job when store.backend is etcd etcdImage: