Skip to content

Commit

Permalink
stable/stolon: fix clustername usage (helm#22115)
Browse files Browse the repository at this point in the history
* [stable/stolon]: changed from using fullname to clustername in the *_CLUSTER_NAME env vars for each of the deployments/statefuslets. The switch to using clusterName was made for the init of the cluster but not for these env vars so a cluster with a custom clusterName which did not match the fullName would fail to init.

Signed-off-by: Oliver Isaac <oisaac@gmail.com>

* [stable/stolon] bumped chart version

Signed-off-by: Oliver Isaac <oisaac@gmail.com>
  • Loading branch information
oliverisaac authored Apr 30, 2020
1 parent 4b261d5 commit 6c7638e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/stolon/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: stolon
version: 1.5.11
version: 1.6.0
appVersion: 0.16.0
description: Stolon - PostgreSQL cloud native High Availability.
home: https://github.com/sorintlab/stolon
Expand Down
2 changes: 1 addition & 1 deletion stable/stolon/templates/keeper-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: STKEEPER_CLUSTER_NAME
value: {{ template "stolon.fullname" . }}
value: {{ template "stolon.clusterName" . }}
- name: STKEEPER_STORE_BACKEND
value: {{ .Values.store.backend | quote }}
{{- if eq .Values.store.backend "kubernetes" }}
Expand Down
2 changes: 1 addition & 1 deletion stable/stolon/templates/proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: STPROXY_CLUSTER_NAME
value: {{ template "stolon.fullname" . }}
value: {{ template "stolon.clusterName" . }}
- name: STPROXY_STORE_BACKEND
value: {{ .Values.store.backend | quote}}
{{- if eq .Values.store.backend "kubernetes" }}
Expand Down
2 changes: 1 addition & 1 deletion stable/stolon/templates/sentinel-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: STSENTINEL_CLUSTER_NAME
value: {{ template "stolon.fullname" . }}
value: {{ template "stolon.clusterName" . }}
- name: STSENTINEL_STORE_BACKEND
value: {{ .Values.store.backend | quote}}
{{- if eq .Values.store.backend "kubernetes" }}
Expand Down

0 comments on commit 6c7638e

Please sign in to comment.