[OOF] Add limit to onboard and healthcheck jobs 25/112525/1
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Fri, 11 Sep 2020 10:06:32 +0000 (15:36 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Fri, 11 Sep 2020 10:12:24 +0000 (15:42 +0530)
Add resources field to OOF jobs to set limit

Issue-ID: OPTFRA-840
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I5fb9a804af9c1a5df440aa61818197028db2c4b6

kubernetes/oof/charts/oof-has/templates/job-healthcheck.yaml
kubernetes/oof/charts/oof-has/templates/job-onboard.yaml

index c006eeb..393a6bb 100755 (executable)
@@ -76,7 +76,7 @@ spec:
             name: {{ .Values.global.commonConfigPrefix }}-config
             subPath: healthcheck.json
         resources:
-{{ toYaml .Values.resources | indent 10 }}
+{{ include "common.resources" . | indent 10 }}
       nodeSelector:
         {{- if .Values.nodeSelector }}
 {{ toYaml .Values.nodeSelector | indent 8 }}
index 22cb5a1..a82435b 100755 (executable)
@@ -81,7 +81,7 @@ spec:
             name: {{ .Values.global.commonConfigPrefix }}-config
             subPath: onboard.json
         resources:
-{{ toYaml .Values.resources | indent 10 }}
+{{ include "common.resources" . | indent 10 }}
       nodeSelector:
         {{- if .Values.nodeSelector }}
 {{ toYaml .Values.nodeSelector | indent 8 }}