From d091a316412897d5947181e1a2a7b9bf810b967b Mon Sep 17 00:00:00 2001 From: Xinzhao Xu Date: Fri, 15 Jan 2021 10:26:00 +0800 Subject: [PATCH] chore(*): rename mongoHosts to mongo.hosts (#23) --- manifests/infra-mongo/templates/pv.yaml | 2 +- manifests/infra-mongo/templates/pvc.yaml | 2 +- manifests/infra-mongo/templates/statefulset.yaml | 2 +- manifests/infra-mongo/values.yaml | 9 +++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/manifests/infra-mongo/templates/pv.yaml b/manifests/infra-mongo/templates/pv.yaml index d887fb1..5f1ca6c 100644 --- a/manifests/infra-mongo/templates/pv.yaml +++ b/manifests/infra-mongo/templates/pv.yaml @@ -1,4 +1,4 @@ -{{- range $index, $value := .Values.platformConfig.mongoHosts }} +{{- range $index, $value := .Values.platformConfig.mongo.hosts }} --- apiVersion: v1 kind: PersistentVolume diff --git a/manifests/infra-mongo/templates/pvc.yaml b/manifests/infra-mongo/templates/pvc.yaml index f0a1b91..004e0df 100644 --- a/manifests/infra-mongo/templates/pvc.yaml +++ b/manifests/infra-mongo/templates/pvc.yaml @@ -1,4 +1,4 @@ -{{- range $index, $value := .Values.platformConfig.mongoHosts }} +{{- range $index, $value := .Values.platformConfig.mongo.hosts }} --- apiVersion: v1 kind: PersistentVolumeClaim diff --git a/manifests/infra-mongo/templates/statefulset.yaml b/manifests/infra-mongo/templates/statefulset.yaml index 70fa457..8539b55 100644 --- a/manifests/infra-mongo/templates/statefulset.yaml +++ b/manifests/infra-mongo/templates/statefulset.yaml @@ -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 }} diff --git a/manifests/infra-mongo/values.yaml b/manifests/infra-mongo/values.yaml index b6d3389..8c1325c 100644 --- a/manifests/infra-mongo/values.yaml +++ b/manifests/infra-mongo/values.yaml @@ -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