You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celeborn.apache.org by ni...@apache.org on 2025/11/07 12:51:46 UTC
(celeborn) branch main updated: [CELEBORN-2189] Allow config worker pod terminationGracePeriodSeconds in chart
This is an automated email from the ASF dual-hosted git repository.
nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 5e4d80bb1 [CELEBORN-2189] Allow config worker pod terminationGracePeriodSeconds in chart
5e4d80bb1 is described below
commit 5e4d80bb1e764b80f5d3462bb8ffb9061efc63b4
Author: pingzh <pi...@gmail.com>
AuthorDate: Fri Nov 7 20:51:35 2025 +0800
[CELEBORN-2189] Allow config worker pod terminationGracePeriodSeconds in chart
### What changes were proposed in this pull request?
Update celeborn helm chart to expose worker pod's `terminationGracePeriodSeconds` for more flexibility.
### Why are the changes needed?
The value of `terminationGracePeriodSeconds` need to expose for more flexibility.
### Does this PR resolve a correctness bug?
No.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
CI. and also local
```
❯ helm unittest .
### Chart [ celeborn ] .
PASS Test Celeborn configmap tests/configmap_test.yaml
PASS Test Celeborn role tests/role_test.yaml
PASS Test Celeborn rolebinding tests/rolebinding_test.yaml
PASS Test Celeborn service account tests/serviceaccount_test.yaml
Charts: 1 passed, 1 total
Test Suites: 4 passed, 4 total
Tests: 9 passed, 9 total
Snapshot: 0 passed, 0 total
Time: 60.240792ms
```
Closes #3533 from pingzh/pingzh-add-terminationGracePeriodSeconds.
Authored-by: pingzh <pi...@gmail.com>
Signed-off-by: SteNicholas <pr...@163.com>
---
charts/celeborn/templates/worker/statefulset.yaml | 4 ++--
charts/celeborn/tests/worker/statefulset_test.yaml | 8 ++++++++
charts/celeborn/values.yaml | 3 +++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/charts/celeborn/templates/worker/statefulset.yaml b/charts/celeborn/templates/worker/statefulset.yaml
index 07d1d4096..0b2d7d9b9 100644
--- a/charts/celeborn/templates/worker/statefulset.yaml
+++ b/charts/celeborn/templates/worker/statefulset.yaml
@@ -92,7 +92,7 @@ spec:
{{- $namespace := .Release.Namespace }}
- >
until {{ range until (.Values.master.replicas | int) }}
- nslookup {{ include "celeborn.master.statefulSet.name" $ }}-{{ . }}.{{ include "celeborn.master.service.name" $ }}.{{ $namespace }}.svc.{{ $.Values.cluster.name }}.local &&
+ nslookup {{ include "celeborn.master.statefulSet.name" $ }}-{{ . }}.{{ include "celeborn.master.service.name" $ }}.{{ $namespace }}.svc.{{ $.Values.cluster.name }}.local &&
{{- end }}
true; do
echo "waiting for master";
@@ -176,4 +176,4 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
- terminationGracePeriodSeconds: 30
+ terminationGracePeriodSeconds: {{ .Values.worker.terminationGracePeriodSeconds }}
diff --git a/charts/celeborn/tests/worker/statefulset_test.yaml b/charts/celeborn/tests/worker/statefulset_test.yaml
index 37b7e8b0b..e232335dc 100644
--- a/charts/celeborn/tests/worker/statefulset_test.yaml
+++ b/charts/celeborn/tests/worker/statefulset_test.yaml
@@ -75,6 +75,14 @@ tests:
path: spec.replicas
value: 10
+ - it: Should use the specified terminationGracePeriodSeconds if `worker.terminationGracePeriodSeconds` is set
+ set:
+ worker.terminationGracePeriodSeconds: 70
+ asserts:
+ - equal:
+ path: spec.template.spec.terminationGracePeriodSeconds
+ value: 70
+
- it: Should add environment variables if `worker.env` is set
set:
worker:
diff --git a/charts/celeborn/values.yaml b/charts/celeborn/values.yaml
index f77177c4b..ca57650d5 100644
--- a/charts/celeborn/values.yaml
+++ b/charts/celeborn/values.yaml
@@ -222,6 +222,9 @@ worker:
# -- Number of Celeborn worker replicas to deploy, should less than node number.
replicas: 5
+ # -- Value for terminationGracePeriodSeconds for worker pods
+ terminationGracePeriodSeconds: 30
+
# -- Annotations for Celeborn worker pods.
annotations:
# key1: value1