From f8702e5b6c85749ae9d345e46c73cbc093f1db55 Mon Sep 17 00:00:00 2001 From: syed salman Date: Fri, 6 Sep 2024 13:30:48 +0530 Subject: [PATCH] [MOSIP-35639] Resolved the resource allocation issue for apitestrig and dslorchestrator Signed-off-by: syed salman --- .github/workflows/verify-keycloak-init.yml | 2 ++ charts/apitestrig/templates/cronjob.yaml | 3 +++ charts/dslorchestrator/templates/cronjob.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/verify-keycloak-init.yml b/.github/workflows/verify-keycloak-init.yml index 9c75489ae..87945308f 100644 --- a/.github/workflows/verify-keycloak-init.yml +++ b/.github/workflows/verify-keycloak-init.yml @@ -5,6 +5,8 @@ on: types: [published] pull_request: types: [opened, reopened, synchronize] + paths: + - 'charts/keycloak-init/**' workflow_dispatch: inputs: message: diff --git a/charts/apitestrig/templates/cronjob.yaml b/charts/apitestrig/templates/cronjob.yaml index cb3ce9a2c..b496ee50a 100644 --- a/charts/apitestrig/templates/cronjob.yaml +++ b/charts/apitestrig/templates/cronjob.yaml @@ -79,6 +79,9 @@ spec: ports: - name: spring-service containerPort: {{ $.Values.springServicePort }} + {{- if $.Values.resources }} + resources: {{- toYaml $.Values.resources | nindent 14 }} + {{- end }} volumeMounts: {{- if $.Values.enable_insecure }} - mountPath: /usr/local/openjdk-11/lib/security/cacerts diff --git a/charts/dslorchestrator/templates/cronjob.yaml b/charts/dslorchestrator/templates/cronjob.yaml index f04da8bee..bbab820e8 100644 --- a/charts/dslorchestrator/templates/cronjob.yaml +++ b/charts/dslorchestrator/templates/cronjob.yaml @@ -139,6 +139,9 @@ spec: ports: - name: spring-service containerPort: {{ $.Values.springServicePort }} + {{- if $.Values.resources }} + resources: {{- toYaml $.Values.resources | nindent 14 }} + {{- end }} volumeMounts: - name: {{ template "common.names.fullname" $ }} mountPath: {{ $.Values.persistence.mountDir }}