Skip to content

Commit

Permalink
feat: allow using templating with terminationGracePeriodSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
stlava committed Aug 6, 2024
1 parent a5f4608 commit c0773f2
Show file tree
Hide file tree
Showing 16 changed files with 68 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/daemonset-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: daemonset-app
description: Default DaemonSet Helm Chart
type: application
version: 0.15.5
version: 0.16.0
appVersion: latest
maintainers:
- name: diranged
Expand Down
9 changes: 8 additions & 1 deletion charts/daemonset-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Default DaemonSet Helm Chart

![Version: 0.15.5](https://img.shields.io/badge/Version-0.15.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 0.16.0](https://img.shields.io/badge/Version-0.16.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

[statefulsets]: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
[hpa]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
Expand All @@ -13,6 +13,13 @@ ServiceAccounts, Services, etc.

## Upgrade Notes

### 1.15.x -> 1.16.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 0.13.0 -> 0.14.x

**BREAKING: Bugfix removing the default readiness and liveness probes **
Expand Down
7 changes: 7 additions & 0 deletions charts/daemonset-app/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ ServiceAccounts, Services, etc.

## Upgrade Notes

### 1.15.x -> 1.16.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 0.13.0 -> 0.14.x

**BREAKING: Bugfix removing the default readiness and liveness probes **
Expand Down
2 changes: 1 addition & 1 deletion charts/daemonset-app/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "nd-common.serviceAccountName" . }}
{{- with .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
terminationGracePeriodSeconds: {{ tpl (toString . ) $ }}
{{- end }}
{{- if or .Values.volumes .Values.volumesString }}
volumes:
Expand Down
2 changes: 1 addition & 1 deletion charts/rollout-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: rollout-app
description: Argo Rollout-based Application Helm Chart
type: application
version: 1.1.1
version: 1.2.0
appVersion: latest
maintainers:
- name: diranged
Expand Down
9 changes: 8 additions & 1 deletion charts/rollout-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Argo Rollout-based Application Helm Chart

![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

[analysistemplate]: https://argoproj.github.io/argo-rollouts/features/analysis/?query=AnalysisTemplate#background-analysis
[argo_rollouts]: https://argoproj.github.io/argo-rollouts/
Expand All @@ -18,6 +18,13 @@ how these work, and the various custom resource definitions.

## Upgrade Notes

### 1.1.x -> 1.2.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 0.7.x -> 1.0.x

**BREAKING: Istio Alerts have changed**
Expand Down
7 changes: 7 additions & 0 deletions charts/rollout-app/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ how these work, and the various custom resource definitions.

## Upgrade Notes

### 1.1.x -> 1.2.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 0.7.x -> 1.0.x

**BREAKING: Istio Alerts have changed**
Expand Down
2 changes: 1 addition & 1 deletion charts/rollout-app/templates/rollout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "nd-common.serviceAccountName" . }}
{{- with .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
terminationGracePeriodSeconds: {{ tpl (toString . ) $ }}
{{- end }}
{{- if or .Values.volumes .Values.volumesString }}
volumes:
Expand Down
2 changes: 1 addition & 1 deletion charts/simple-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: simple-app
description: Default Microservice Helm Chart
type: application
version: 1.9.0
version: 1.10.0
appVersion: latest
maintainers:
- name: diranged
Expand Down
9 changes: 8 additions & 1 deletion charts/simple-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Default Microservice Helm Chart

![Version: 1.9.0](https://img.shields.io/badge/Version-1.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.10.0](https://img.shields.io/badge/Version-1.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

[deployments]: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
[hpa]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
Expand All @@ -13,6 +13,13 @@ defaults for you like the Kubernetes [Horizontal Pod Autoscaler][hpa].

## Upgrade Notes

### 1.9.x -> 1.10.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 1.8.x -> 1.9.x

`readinessProbe` is now only required when `virtualService.enabled` is `true`. This
Expand Down
7 changes: 7 additions & 0 deletions charts/simple-app/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ defaults for you like the Kubernetes [Horizontal Pod Autoscaler][hpa].

## Upgrade Notes

### 1.9.x -> 1.10.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 1.8.x -> 1.9.x

`readinessProbe` is now only required when `virtualService.enabled` is `true`. This
Expand Down
2 changes: 1 addition & 1 deletion charts/simple-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ spec:
{{- toYaml $.Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "nd-common.serviceAccountName" $ }}
{{- with $.Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
terminationGracePeriodSeconds: {{ tpl ( toString . ) $ }}
{{- end }}
{{- if or $.Values.volumes $.Values.volumesString }}
volumes:
Expand Down
2 changes: 1 addition & 1 deletion charts/stateful-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: stateful-app
description: Default StatefulSet Helm Chart
type: application
version: 1.1.1
version: 1.2.0
appVersion: latest
maintainers:
- name: diranged
Expand Down
9 changes: 8 additions & 1 deletion charts/stateful-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Default StatefulSet Helm Chart

![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

[statefulsets]: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
[hpa]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
Expand All @@ -13,6 +13,13 @@ ServiceAccounts, Services, etc.

## Upgrade Notes

### 1.1.x -> 1.2.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 0.16.x -> 1.0.x

**BREAKING: Istio Alerts have changed**
Expand Down
7 changes: 7 additions & 0 deletions charts/stateful-app/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ ServiceAccounts, Services, etc.

## Upgrade Notes

### 1.1.x -> 1.2.x

**NEW: Templated Termination Grace Period**

`terminationGracePeriodSeconds` now supports template variables. This allows
one to compute the termination grace period based on additional criteria.

### 0.16.x -> 1.0.x

**BREAKING: Istio Alerts have changed**
Expand Down
2 changes: 1 addition & 1 deletion charts/stateful-app/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "nd-common.serviceAccountName" . }}
{{- with .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
terminationGracePeriodSeconds: {{ tpl (toString . ) $ }}
{{- end }}
{{- if or .Values.volumes .Values.volumesString }}
volumes:
Expand Down

0 comments on commit c0773f2

Please sign in to comment.