Skip to content

Commit

Permalink
update patroni to the latest version (helm#104)
Browse files Browse the repository at this point in the history
* chore(patroni): update patroni to the latest version

* fix(patroni): fix quoting mistakes in patroni chart

* fix(patroni): state the correct username in NOTES.txt

* chore(patroni): bump chart version of patroni to v0.1.1
  • Loading branch information
linki authored and Vic Iglesias committed Oct 14, 2016
1 parent 8bcfa09 commit 30ef623
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion incubator/patroni/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion incubator/patroni/charts/etcd/templates/etcd-petset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
2 changes: 1 addition & 1 deletion incubator/patroni/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions incubator/patroni/templates/ps-patroni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions incubator/patroni/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: patroni
Namespace: default # TODO: make this actually configurable
Namespace: default

Component: patroni
ImagePullPolicy: IfNotPresent
Expand All @@ -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
Expand Down

0 comments on commit 30ef623

Please sign in to comment.