[stable/mongodb-replicaset] Warning fixed, made client service optional (#22209, #22759). (#22971)

Made the headless client service optional, fixed warning when used as a subchart.

Signed-off-by: Berk Soysal <berksoysal@live.com>
This commit is contained in:
Berk Soysal
2020-07-07 11:19:59 -07:00
committed by GitHub
parent 135016f904
commit b02f0bf977
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.16.1
version: 3.16.2
appVersion: 3.6
description: NoSQL document-oriented database that stores JSON-like documents with
dynamic schemas, simplifying the integration of data in content-driven applications.
+1
View File
@@ -112,6 +112,7 @@ The following table lists the configurable parameters of the mongodb chart and t
| `extraVars` | Set environment variables for the main container | `{}` |
| `extraLabels` | Additional labels to add to resources | `{}` |
| `extraVolumes` | Additional volumes to add to the resources | `[]` |
| `clientService.enabled` | Enables the headless client service | `true` |
| `global.namespaceOverride` | Override the deployment namespace | Not set (`Release.Namespace`) |
*MongoDB config file*
@@ -1,4 +1,5 @@
# A headless service for client applications to use
{{- if .Values.clientService.enabled -}}
# An optional headless service for client applications to use
apiVersion: v1
kind: Service
metadata:
@@ -30,4 +31,4 @@ spec:
selector:
app: {{ template "mongodb-replicaset.name" . }}
release: {{ .Release.Name }}
{{- end -}}
+7 -2
View File
@@ -3,8 +3,9 @@ nameOverride: ""
fullnameOverride: ""
# Override the deployment namespace
global:
# namespaceOverride: ""
global: {}
# global:
# namespaceOverride: ""
replicas: 3
port: 27017
@@ -198,3 +199,7 @@ livenessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
# Enables/disables the headless client service
clientService:
enabled: true