From 25e82dbd98890e14941d1539f89242c143bef4b9 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 14 Oct 2016 16:36:05 +0200 Subject: [PATCH 1/4] chore(patroni): update patroni to the latest version --- incubator/patroni/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incubator/patroni/values.yaml b/incubator/patroni/values.yaml index bd3d61290e82..7f4572719b8b 100644 --- a/incubator/patroni/values.yaml +++ b/incubator/patroni/values.yaml @@ -1,5 +1,5 @@ Name: patroni -Namespace: default # TODO: make this actually configurable +Namespace: default Component: patroni ImagePullPolicy: IfNotPresent @@ -8,7 +8,7 @@ ImagePullPolicy: IfNotPresent Spilo: # this image was built from https://github.com/zalando/spilo/tree/master/postgres-appliance Image: registry.opensource.zalan.do/acid/spilo-9.5 - Version: 1.0-p5 + Version: 1.1-p5 # How many postgres containers to spawn Replicas: 5 From 240ee8f343710c004011c6addf3ef8ac9445a79d Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 14 Oct 2016 16:36:14 +0200 Subject: [PATCH 2/4] fix(patroni): fix quoting mistakes in patroni chart --- incubator/patroni/charts/etcd/templates/etcd-petset.yaml | 2 +- incubator/patroni/templates/ps-patroni.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/incubator/patroni/charts/etcd/templates/etcd-petset.yaml b/incubator/patroni/charts/etcd/templates/etcd-petset.yaml index 671dec57cb9a..a7188d38b747 100644 --- a/incubator/patroni/charts/etcd/templates/etcd-petset.yaml +++ b/incubator/patroni/charts/etcd/templates/etcd-petset.yaml @@ -35,7 +35,7 @@ metadata: "helm.sh/created": {{.Release.Time.Seconds | quote }} spec: serviceName: "{{ printf "%s-%s" .Release.Name .Values.Name | trunc 24 }}" - replicas: {{default 3 .Values.Replicas | quote }} + replicas: {{default 3 .Values.Replicas }} template: metadata: name: "{{ printf "%s-%s" .Release.Name .Values.Name | trunc 24 }}" diff --git a/incubator/patroni/templates/ps-patroni.yaml b/incubator/patroni/templates/ps-patroni.yaml index 60f43e5d9a69..c1fb3db5c849 100644 --- a/incubator/patroni/templates/ps-patroni.yaml +++ b/incubator/patroni/templates/ps-patroni.yaml @@ -12,7 +12,7 @@ metadata: "helm.sh/created": {{ .Release.Time.Seconds | quote }} spec: serviceName: {{ template "fullname" . }} - replicas: {{default 5 .Values.Replicas | quote }} + replicas: {{default 5 .Values.Replicas }} template: metadata: name: {{ template "fullname" . }} @@ -27,7 +27,7 @@ spec: spec: containers: - name: spilo - image: {{ .Values.Spilo.Image }}:{{ .Values.Spilo.Version }} + image: "{{ .Values.Spilo.Image }}:{{ .Values.Spilo.Version }}" env: - name: PGPASSWORD_SUPERUSER valueFrom: From 926c980c263e5419d8a2ae374074d3237e8a827a Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 14 Oct 2016 16:36:19 +0200 Subject: [PATCH 3/4] fix(patroni): state the correct username in NOTES.txt --- incubator/patroni/templates/NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incubator/patroni/templates/NOTES.txt b/incubator/patroni/templates/NOTES.txt index 1b7e97ed3474..8c57beee1f52 100644 --- a/incubator/patroni/templates/NOTES.txt +++ b/incubator/patroni/templates/NOTES.txt @@ -21,5 +21,5 @@ To connect to your database: # login as superuser kubectl run -i --tty --rm psql --image=postgres \ --env "PGPASSWORD=$PGPASSWORD_SUPERUSER" \ - --command -- psql -U superuser \ + --command -- psql -U postgres \ -h {{ template "fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local postgres From 13efe2df38acc468226dd4ce1bf6a08c27180647 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 14 Oct 2016 16:36:24 +0200 Subject: [PATCH 4/4] chore(patroni): bump chart version of patroni to v0.1.1 --- incubator/patroni/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incubator/patroni/Chart.yaml b/incubator/patroni/Chart.yaml index 0a40e502804d..b347a8990637 100644 --- a/incubator/patroni/Chart.yaml +++ b/incubator/patroni/Chart.yaml @@ -1,6 +1,6 @@ name: patroni description: "Highly available elephant herd: HA PostgreSQL cluster." -version: 0.1.0 +version: 0.1.1 home: https://github.com/zalando/patroni sources: - https://github.com/zalando/patroni