From 5cdaad0593deede4fb9c19188eee8b21303baf8f Mon Sep 17 00:00:00 2001 From: Ivanmeneges Date: Sun, 16 Nov 2025 16:52:51 +0530 Subject: [PATCH 1/3] Update .gitignore Signed-off-by: Ivanmeneges --- helm/artifactory/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/artifactory/.gitignore b/helm/artifactory/.gitignore index ee3892e8..f791801b 100644 --- a/helm/artifactory/.gitignore +++ b/helm/artifactory/.gitignore @@ -1 +1,2 @@ charts/ +Chart.lock From 4a20e1ada3bcfeb919081c35456d643905be5753 Mon Sep 17 00:00:00 2001 From: Ivanmeneges Date: Sun, 16 Nov 2025 16:53:49 +0530 Subject: [PATCH 2/3] Update deployment.yaml Signed-off-by: Ivanmeneges --- helm/artifactory/templates/deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/artifactory/templates/deployment.yaml b/helm/artifactory/templates/deployment.yaml index 231540fc..c952ee3c 100644 --- a/helm/artifactory/templates/deployment.yaml +++ b/helm/artifactory/templates/deployment.yaml @@ -34,6 +34,7 @@ spec: {{- if .Values.hostAliases }} hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} {{- end }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds | default 60 }} {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.affinity "context" $) | nindent 8 }} {{- else }} From 518b83bbc24604ed3bc3cf83c80bf1837df5d355 Mon Sep 17 00:00:00 2001 From: Ivanmeneges Date: Sun, 16 Nov 2025 16:56:34 +0530 Subject: [PATCH 3/3] [MOSIP-43648] Configure graceful pod termination with lifecycle hooks Signed-off-by: Ivanmeneges --- helm/artifactory/values.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/helm/artifactory/values.yaml b/helm/artifactory/values.yaml index dd9c04b2..88d62a19 100644 --- a/helm/artifactory/values.yaml +++ b/helm/artifactory/values.yaml @@ -190,7 +190,17 @@ podAnnotations: {} ## lifecycleHooks for the container to automate configuration before or after startup. ## -lifecycleHooks: {} +lifecycleHooks: + preStop: + exec: + command: + - sh + - -c + - sleep 30 + +## Termination grace perios : the maximum amount of time (in seconds) Kubernetes will wait for a container to gracefully shut down +terminationGracePeriodSeconds: 60 + ## Custom Liveness probes for ## customLivenessProbe: {} @@ -273,8 +283,8 @@ volumePermissions: enabled: false image: registry: docker.io - repository: bitnami/bitnami-shell - tag: "10" + repository: mosipid/os-shell + tag: "12-debian-12-r46" pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace.