From: rajeshkalai Date: Tue, 18 Sep 2018 07:39:18 +0000 (-0400) Subject: Fix: change the global to application flavor X-Git-Tag: 3.0.0-ONAP~334 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F67219%2F2;p=oom.git Fix: change the global to application flavor Issue-ID: OOM-1150 Change-Id: Iac3d8080372162edd9ef7d382f1f31fd3373ac16 Signed-off-by: rajeshkalai --- diff --git a/kubernetes/cli/templates/deployment.yaml b/kubernetes/cli/templates/deployment.yaml index 09e0e7f167..94d475bcb5 100644 --- a/kubernetes/cli/templates/deployment.yaml +++ b/kubernetes/cli/templates/deployment.yaml @@ -55,7 +55,7 @@ spec: - name: OPEN_CLI_MODE value: "{{ .Values.config.climode }}" resources: -{{ toYaml .Values.resources | indent 12 }} +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} diff --git a/kubernetes/cli/values.yaml b/kubernetes/cli/values.yaml index 6bfd793979..5766c810e4 100644 --- a/kubernetes/cli/values.yaml +++ b/kubernetes/cli/values.yaml @@ -19,7 +19,6 @@ global: nodePortPrefix: 302 readinessRepository: oomk8s readinessImage: readiness-check:2.0.0 - ################################################################# # Application configuration defaults. ################################################################# @@ -27,6 +26,7 @@ global: repository: nexus3.onap.org:10001 image: onap/cli:2.0.2 pullPolicy: Always +flavor: small # application configuration config: