Fix: change the global to application flavor 19/67219/2
authorrajeshkalai <rajesh.kalaiselvan@amdocs.com>
Tue, 18 Sep 2018 07:39:18 +0000 (03:39 -0400)
committerMandeep Khinda <mandeep.khinda@amdocs.com>
Tue, 18 Sep 2018 15:08:07 +0000 (15:08 +0000)
Issue-ID: OOM-1150

Change-Id: Iac3d8080372162edd9ef7d382f1f31fd3373ac16
Signed-off-by: rajeshkalai <rajesh.kalaiselvan@amdocs.com>
kubernetes/cli/templates/deployment.yaml
kubernetes/cli/values.yaml

index 09e0e7f..94d475b 100644 (file)
@@ -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 }}
index 6bfd793..5766c81 100644 (file)
@@ -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: