summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/charts/so-mariadb/templates
diff options
context:
space:
mode:
authorvaibhav16dec <vaibhav.chopra@amdocs.com>2018-08-13 06:10:27 +0000
committervaibhav_16dec <vaibhav.chopra@amdocs.com>2018-09-07 07:58:18 +0000
commit0da8829497597e0472c3ce08af3ea59d65a60f5b (patch)
treef786c57277525cb0884b026f817f6eddecfe6191 /kubernetes/so/charts/so-mariadb/templates
parent222709edc107d5317672b8bed2296c38bf0c8570 (diff)
Flavors defintion in resource limit
Issue-ID: OOM-1322 Change-Id: I5248ae206da6b5d65b0830f454813e6e14ec7284 Signed-off-by: vaibhav16dec <vaibhav.chopra@amdocs.com>
Diffstat (limited to 'kubernetes/so/charts/so-mariadb/templates')
-rwxr-xr-xkubernetes/so/charts/so-mariadb/templates/deployment.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/so/charts/so-mariadb/templates/deployment.yaml b/kubernetes/so/charts/so-mariadb/templates/deployment.yaml
index a72d10851b..07feb4aba2 100755
--- a/kubernetes/so/charts/so-mariadb/templates/deployment.yaml
+++ b/kubernetes/so/charts/so-mariadb/templates/deployment.yaml
@@ -81,7 +81,7 @@ spec:
- name: docker-entrypoint-initdb-d
mountPath: "/docker-entrypoint-initdb.d"
resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 10 }}
@@ -107,4 +107,4 @@ spec:
- name: docker-entrypoint-initdb-d
emptyDir: {}
imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key" \ No newline at end of file
+ - name: "{{ include "common.namespace" . }}-docker-registry-key"