fix(deployment): number of replicas
This commit is contained in:
parent
a3e4c0c0e7
commit
1581617daf
@ -12,6 +12,7 @@ metadata:
|
|||||||
name: {{ include "prometheus-postgres-exporter.fullname" . }}
|
name: {{ include "prometheus-postgres-exporter.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
|
replicas: {{ .Values.deployment.replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "prometheus-postgres-exporter.pod.selectorLabels" . | nindent 6 }}
|
{{- include "prometheus-postgres-exporter.pod.selectorLabels" . | nindent 6 }}
|
||||||
|
@ -27,6 +27,9 @@ tests:
|
|||||||
app.kubernetes.io/name: prometheus-postgres-exporter
|
app.kubernetes.io/name: prometheus-postgres-exporter
|
||||||
app.kubernetes.io/version: 0.1.0
|
app.kubernetes.io/version: 0.1.0
|
||||||
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
||||||
|
- equal:
|
||||||
|
path: spec.replicas
|
||||||
|
value: 1
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].envFrom
|
path: spec.template.spec.containers[0].envFrom
|
||||||
content:
|
content:
|
||||||
@ -91,6 +94,14 @@ tests:
|
|||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.topologySpreadConstraints
|
path: spec.template.spec.topologySpreadConstraints
|
||||||
|
|
||||||
|
- it: Test custom replicas
|
||||||
|
set:
|
||||||
|
deployment.replicas: 3
|
||||||
|
asserts:
|
||||||
|
- equal:
|
||||||
|
path: spec.replicas
|
||||||
|
value: 3
|
||||||
|
|
||||||
- it: Test additional arguments
|
- it: Test additional arguments
|
||||||
set:
|
set:
|
||||||
deployment.postgresExporter.args:
|
deployment.postgresExporter.args:
|
||||||
|
@ -259,7 +259,7 @@
|
|||||||
"priorityClassName": {
|
"priorityClassName": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"replicaCount": {
|
"replicas": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"restartPolicy": {
|
"restartPolicy": {
|
||||||
@ -326,7 +326,7 @@
|
|||||||
"postgresExporter",
|
"postgresExporter",
|
||||||
"nodeSelector",
|
"nodeSelector",
|
||||||
"priorityClassName",
|
"priorityClassName",
|
||||||
"replicaCount",
|
"replicas",
|
||||||
"restartPolicy",
|
"restartPolicy",
|
||||||
"securityContext",
|
"securityContext",
|
||||||
"strategy",
|
"strategy",
|
||||||
|
@ -198,8 +198,8 @@ deployment:
|
|||||||
## @param deployment.priorityClassName PriorityClassName of the postgres-exporter deployment.
|
## @param deployment.priorityClassName PriorityClassName of the postgres-exporter deployment.
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
## @param deployment.replicaCount Number of replicas for the postgres-exporter deployment.
|
## @param deployment.replicas Number of replicas for the postgres-exporter deployment.
|
||||||
replicaCount: 1
|
replicas: 1
|
||||||
|
|
||||||
## @param deployment.restartPolicy Restart policy of the postgres-exporter deployment.
|
## @param deployment.restartPolicy Restart policy of the postgres-exporter deployment.
|
||||||
restartPolicy: ""
|
restartPolicy: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user