Compare commits
No commits in common. "ce4065bda8ad6a084a6cf4b8fd7a0260f0d80966" and "a3e4c0c0e73c9ee15b2b73883078322770eee02c" have entirely different histories.
ce4065bda8
...
a3e4c0c0e7
@ -12,7 +12,6 @@ metadata:
|
||||
name: {{ include "prometheus-postgres-exporter.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
replicas: {{ .Values.deployment.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "prometheus-postgres-exporter.pod.selectorLabels" . | nindent 6 }}
|
||||
@ -21,10 +20,6 @@ spec:
|
||||
labels:
|
||||
{{- include "prometheus-postgres-exporter.pod.labels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.deployment.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: postgres-exporter
|
||||
args:
|
||||
|
@ -27,11 +27,6 @@ tests:
|
||||
app.kubernetes.io/name: prometheus-postgres-exporter
|
||||
app.kubernetes.io/version: 0.1.0
|
||||
helm.sh/chart: prometheus-postgres-exporter-0.1.0
|
||||
- equal:
|
||||
path: spec.replicas
|
||||
value: 1
|
||||
- notExists:
|
||||
path: spec.template.spec.affinity
|
||||
- contains:
|
||||
path: spec.template.spec.containers[0].envFrom
|
||||
content:
|
||||
@ -96,40 +91,6 @@ tests:
|
||||
- notExists:
|
||||
path: spec.template.spec.topologySpreadConstraints
|
||||
|
||||
- it: Test custom replicas
|
||||
set:
|
||||
deployment.replicas: 3
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.replicas
|
||||
value: 3
|
||||
|
||||
- it: Test custom affinity
|
||||
set:
|
||||
deployment.affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: topology.kubernetes.io/zone
|
||||
operator: In
|
||||
values:
|
||||
- antarctica-east1
|
||||
- antarctica-west1
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.affinity
|
||||
value:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: topology.kubernetes.io/zone
|
||||
operator: In
|
||||
values:
|
||||
- antarctica-east1
|
||||
- antarctica-west1
|
||||
|
||||
- it: Test additional arguments
|
||||
set:
|
||||
deployment.postgresExporter.args:
|
||||
|
@ -259,7 +259,7 @@
|
||||
"priorityClassName": {
|
||||
"type": "string"
|
||||
},
|
||||
"replicas": {
|
||||
"replicaCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"restartPolicy": {
|
||||
@ -326,7 +326,7 @@
|
||||
"postgresExporter",
|
||||
"nodeSelector",
|
||||
"priorityClassName",
|
||||
"replicas",
|
||||
"replicaCount",
|
||||
"restartPolicy",
|
||||
"securityContext",
|
||||
"strategy",
|
||||
|
@ -198,8 +198,8 @@ deployment:
|
||||
## @param deployment.priorityClassName PriorityClassName of the postgres-exporter deployment.
|
||||
priorityClassName: ""
|
||||
|
||||
## @param deployment.replicas Number of replicas for the postgres-exporter deployment.
|
||||
replicas: 1
|
||||
## @param deployment.replicaCount Number of replicas for the postgres-exporter deployment.
|
||||
replicaCount: 1
|
||||
|
||||
## @param deployment.restartPolicy Restart policy of the postgres-exporter deployment.
|
||||
restartPolicy: ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user