Fix: aai resource limits- charts except cassandra

Issue-ID: OOM-1147

Change-Id: I438d404b0717b5179857d3226590b28c0372848d
Signed-off-by: rajeshkalai <rajesh.kalaiselvan@amdocs.com>

Fix: request -resource limits for aai

Issue-ID: OOM-1147

Change-Id: I5898e2c6c6b4c6cc1c302c287b15f5697bf2e36b
Signed-off-by: rajeshkalai <rajesh.kalaiselvan@amdocs.com>
diff --git a/charts/aai-gizmo/templates/deployment.yaml b/charts/aai-gizmo/templates/deployment.yaml
index 0fb8552..d36ae2f 100644
--- a/charts/aai-gizmo/templates/deployment.yaml
+++ b/charts/aai-gizmo/templates/deployment.yaml
@@ -89,7 +89,7 @@
             name: {{ include "common.fullname" . }}-logback-config
             subPath: logback.xml
           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/charts/aai-gizmo/values.yaml b/charts/aai-gizmo/values.yaml
index 50c9d77..d34ff2b 100644
--- a/charts/aai-gizmo/values.yaml
+++ b/charts/aai-gizmo/values.yaml
@@ -24,7 +24,7 @@
 
 # application image
 image: onap/gizmo:1.3-STAGING-latest
-
+flavor: small
 # application configuration
 config:
   keyStorePassword: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
@@ -59,4 +59,18 @@
 ingress:
   enabled: false
 
-resources: {}
+resources:
+  small:
+    limits:
+      cpu: 2
+      memory: 4Gi
+    requests:
+      cpu: 1
+      memory: 2Gi
+  large:
+    limits:
+      cpu: 4
+      memory: 8Gi
+    requests:
+      cpu: 4
+      memory: 8Gi