Skip to content

Commit

Permalink
chore(*): rename mongoHosts to mongo.hosts (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinzhao Xu authored Jan 15, 2021
1 parent e659dda commit d091a31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifests/infra-mongo/templates/pv.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- range $index, $value := .Values.platformConfig.mongoHosts }}
{{- range $index, $value := .Values.platformConfig.mongo.hosts }}
---
apiVersion: v1
kind: PersistentVolume
Expand Down
2 changes: 1 addition & 1 deletion manifests/infra-mongo/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- range $index, $value := .Values.platformConfig.mongoHosts }}
{{- range $index, $value := .Values.platformConfig.mongo.hosts }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand Down
2 changes: 1 addition & 1 deletion manifests/infra-mongo/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
serviceName: {{ .Values.serviceName | quote }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
replicas: {{ len .Values.platformConfig.mongoHosts }}
replicas: {{ len .Values.platformConfig.mongo.hosts }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
Expand Down
9 changes: 5 additions & 4 deletions manifests/infra-mongo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ platformConfig:
imageRepositoryLibrary: library
imageRepositoryRelease: release
imagePullPolicy: Always
mongoHosts:
- kube-master-1
- kube-master-2
- kube-master-3
mongo:
hosts:
- kube-master-1
- kube-master-2
- kube-master-3

image:
name: mongo
Expand Down

0 comments on commit d091a31

Please sign in to comment.