From 36ca6a0fbc9d2232f2415da86f72867da237dd42 Mon Sep 17 00:00:00 2001 From: Milan Rafaj <10629777+eufebius@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:54:34 +0100 Subject: [PATCH] [stable/cluster-overprovisioner] add terminationGracePeriodSeconds --- stable/cluster-overprovisioner/Chart.yaml | 2 +- stable/cluster-overprovisioner/README.md | 5 +++-- stable/cluster-overprovisioner/templates/deployments.yaml | 4 ++++ stable/cluster-overprovisioner/values.yaml | 3 +++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/stable/cluster-overprovisioner/Chart.yaml b/stable/cluster-overprovisioner/Chart.yaml index 49c9f94a..69405065 100644 --- a/stable/cluster-overprovisioner/Chart.yaml +++ b/stable/cluster-overprovisioner/Chart.yaml @@ -8,7 +8,7 @@ description: | This approach is the [current recommended method to achieve overprovisioning](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-configure-overprovisioning-with-cluster-autoscaler). name: cluster-overprovisioner home: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler -version: 0.7.11 +version: 0.7.12 maintainers: - name: max-rocket-internet email: max.williams@deliveryhero.com diff --git a/stable/cluster-overprovisioner/README.md b/stable/cluster-overprovisioner/README.md index 979f450c..8fdcfa4e 100644 --- a/stable/cluster-overprovisioner/README.md +++ b/stable/cluster-overprovisioner/README.md @@ -1,6 +1,6 @@ # cluster-overprovisioner -![Version: 0.7.11](https://img.shields.io/badge/Version-0.7.11-informational?style=flat-square) ![AppVersion: 3.9](https://img.shields.io/badge/AppVersion-3.9-informational?style=flat-square) +![Version: 0.7.12](https://img.shields.io/badge/Version-0.7.12-informational?style=flat-square) ![AppVersion: 3.9](https://img.shields.io/badge/AppVersion-3.9-informational?style=flat-square) This chart provide a buffer for cluster autoscaling to allow overprovisioning of cluster nodes. This is desired when you have work loads that need to scale up quickly without waiting for the new cluster nodes to be created and join the cluster. @@ -21,7 +21,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/cluster-over To install a specific version of this chart: ```console -helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner --version 0.7.11 +helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner --version 0.7.12 ``` To install the chart with the release name `my-release`: @@ -86,6 +86,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovi | serviceAccount.automountServiceAccountToken | bool | `true` | Automount API credentials for a Service Account | | serviceAccount.create | bool | `true` | Determine whether a Service Account should be created or it should reuse an exiting one | | serviceAccount.name | string | `nil` | The name of the ServiceAccount to use. If not set and create is `true`, a name is generated using the fullname template | +| terminationGracePeriodSeconds | int | `0` | Time for graceful pod termination | ## Maintainers diff --git a/stable/cluster-overprovisioner/templates/deployments.yaml b/stable/cluster-overprovisioner/templates/deployments.yaml index 7020b6f3..bca438e1 100644 --- a/stable/cluster-overprovisioner/templates/deployments.yaml +++ b/stable/cluster-overprovisioner/templates/deployments.yaml @@ -9,6 +9,7 @@ {{- $chartName := .Chart.Name }} {{- $containerSecurityContext := .Values.containerSecurityContext }} {{- $podSecurityContext := .Values.podSecurityContext }} +{{- $terminationGracePeriodSeconds := .Values.terminationGracePeriodSeconds }} {{- $priorityClassName := .Values.priorityClassOverprovision.name }} {{- $repository := .Values.image.repository }} {{- $imageTag := default .Chart.AppVersion .Values.image.tag }} @@ -95,6 +96,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with $terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ $terminationGracePeriodSeconds }} + {{- end }} {{- with .topologySpreadConstraints }} topologySpreadConstraints: {{- range . }} diff --git a/stable/cluster-overprovisioner/values.yaml b/stable/cluster-overprovisioner/values.yaml index 871d59f1..581b1224 100644 --- a/stable/cluster-overprovisioner/values.yaml +++ b/stable/cluster-overprovisioner/values.yaml @@ -21,6 +21,9 @@ priorityClassDefault: # priorityClassDefault.value -- Priority value of the default priorityClass value: 0 +# terminationGracePeriodSeconds -- Time for graceful pod termination +terminationGracePeriodSeconds: 0 + image: # image.repository -- Image repository repository: registry.k8s.io/pause