Skip to content

Commit 5f19fab

Browse files
authored
Expose terminationGracePeriod (#1460)
1 parent 9053dc1 commit 5f19fab

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
### Added
2020

2121
- Add standard tags to IRSA infrastructure.
22+
- Expose value to configure `terminationGracePeriod` in the karpenter node pools.
2223

2324
## [5.0.0] - 2025-09-12
2425

helm/cluster-aws/ci/test-karpenter-full-values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ global:
4747
rootVolumeSizeGB: 8
4848
subnetTags:
4949
- giantswarm.io/else: "something"
50+
terminationGracePeriod: 30m
5051
providerSpecific:
5152
region: "eu-west-1"
5253
release:

helm/cluster-aws/templates/_karpenter_machine_pools.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ spec:
149149
{{- end }}
150150
{{- end }}
151151
{{- end }}
152+
{{- with $value.terminationGracePeriod }}
153+
terminationGracePeriod: {{ . }}
154+
{{- end }}
152155
---
153156
{{ end }}
154157
{{ end }}

helm/cluster-aws/values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,16 @@
484484
"$ref": "#/$defs/awsResourceTagValue"
485485
}
486486
}
487+
},
488+
"terminationGracePeriod": {
489+
"type": "string",
490+
"title": "Termination Grace Period",
491+
"description": "The amount of time a Node can be draining before Karpenter forcibly cleans up the node. Pods blocking eviction like PDBs and do-not-disrupt will be respected during draining until the terminationGracePeriod is reached, where those pods will be forcibly deleted.",
492+
"examples": [
493+
"48h"
494+
],
495+
"default": "30m",
496+
"pattern": "^([0-9]+(s|m|h))+$"
487497
}
488498
}
489499
}

0 commit comments

Comments
 (0)