Skip to content

Commit

Permalink
feat(argo-rollouts): Add lifecyle and terminationGracePeriodSeconds s…
Browse files Browse the repository at this point in the history
…ettings for controller (#3100)

* feat(argo-rollouts): Add lifecyle and terminationGracePeriodSeconds settings for controller

Signed-off-by: AviorSchreiber <[email protected]>

* Update charts/argo-rollouts/templates/controller/deployment.yaml

Co-authored-by: Aikawa <[email protected]>
Signed-off-by: AviorSchreiber <[email protected]>

* Update charts/argo-rollouts/templates/controller/deployment.yaml

Co-authored-by: JM (Jason Meridth) <[email protected]>
Signed-off-by: AviorSchreiber <[email protected]>

---------

Signed-off-by: AviorSchreiber <[email protected]>
Co-authored-by: Aikawa <[email protected]>
Co-authored-by: JM (Jason Meridth) <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2025
1 parent 2436051 commit 91ad829
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
8 changes: 5 additions & 3 deletions charts/argo-rollouts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v1.7.2
description: A Helm chart for Argo Rollouts
name: argo-rollouts
version: 2.38.1
version: 2.38.2
home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
keywords:
Expand All @@ -18,5 +18,7 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: fixed
description: Correct outdated URL for ingress
- kind: added
description: Add lifecycle settings for controller
- kind: added
description: Add terminationGracePeriodSeconds for controller
2 changes: 2 additions & 0 deletions charts/argo-rollouts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ For full list of changes please check ArtifactHub [changelog].
| controller.image.repository | string | `"argoproj/argo-rollouts"` | Repository to use |
| controller.image.tag | string | `""` | Overrides the image tag (default is the chart appVersion) |
| controller.initContainers | list | `[]` | Init containers to add to the rollouts controller pod |
| controller.lifecycle | object | `{}` | Specify lifecycle hooks for the controller |
| controller.livenessProbe | object | See [values.yaml] | Configure liveness [probe] for the controller |
| controller.logging.format | string | `"text"` | Set the logging format (one of: `text`, `json`) |
| controller.logging.kloglevel | string | `"0"` | Set the klog logging level |
Expand Down Expand Up @@ -125,6 +126,7 @@ For full list of changes please check ArtifactHub [changelog].
| controller.readinessProbe | object | See [values.yaml] | Configure readiness [probe] for the controller |
| controller.replicas | int | `2` | The number of controller pods to run |
| controller.resources | object | `{}` | Resource limits and requests for the controller pods. |
| controller.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
| controller.tolerations | list | `[]` | [Tolerations] for use with node taints |
| controller.topologySpreadConstraints | list | `[]` | Assign custom [TopologySpreadConstraints] rules to the controller |
| controller.trafficRouterPlugins | list | `[]` | Configures 3rd party traffic router plugins for controller |
Expand Down
6 changes: 6 additions & 0 deletions charts/argo-rollouts/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
{{- toYaml .Values.controller.readinessProbe | nindent 10 }}
securityContext:
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
{{- with .Values.controller.lifecycle }}
lifecycle: {{ toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.controller.resources | nindent 10 }}
volumeMounts:
Expand All @@ -101,6 +104,9 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.controller.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
{{- end }}
{{- if .Values.controller.tolerations }}
tolerations:
{{- toYaml .Values.controller.tolerations | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/argo-rollouts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ controller:
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule

# -- terminationGracePeriodSeconds for container lifecycle hook
terminationGracePeriodSeconds: 30
# -- Specify lifecycle hooks for the controller
lifecycle: {}
# -- [priorityClassName] for the controller
priorityClassName: ""
# -- The number of controller pods to run
Expand Down

0 comments on commit 91ad829

Please sign in to comment.