Skip to content

Commit

Permalink
Add support for minReadySeconds in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloPie committed Jan 28, 2025
1 parent e621c94 commit 36b2ec9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions operations/helm/charts/alloy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ This document contains a historical list of changes between releases. Only
changes that impact end-user behavior are listed; changes to documentation or
internal API changes are not present.

X.X.X
----------

### Enhancements

- Add support for configuring minReadySeconds in Helm chart. (@PabloPie)

0.11.0 (2025-01-23)
----------

Expand Down
1 change: 1 addition & 0 deletions operations/helm/charts/alloy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ useful if just using the default DaemonSet isn't sufficient.
| controller.initContainers | list | `[]` | |
| controller.nodeSelector | object | `{}` | nodeSelector to apply to Grafana Alloy pods. |
| controller.parallelRollout | bool | `true` | Whether to deploy pods in parallel. Only used when controller.type is 'statefulset'. |
| controller.minReadySeconds | int | `10` | How many additional seconds to wait before considering a pod ready. |
| controller.podAnnotations | object | `{}` | Extra pod annotations to add. |
| controller.podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":null,"minAvailable":null}` | PodDisruptionBudget configuration. |
| controller.podDisruptionBudget.enabled | bool | `false` | Whether to create a PodDisruptionBudget for the controller. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
{{- end }}
spec:
{{- if ge (int .Capabilities.KubeVersion.Minor) 22 }}
minReadySeconds: 10
minReadySeconds: {{ .Values.controller.minReadySeconds }}
{{- end }}
selector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
replicas: {{ .Values.controller.replicas }}
{{- end }}
{{- if ge (int .Capabilities.KubeVersion.Minor) 22 }}
minReadySeconds: 10
minReadySeconds: {{ .Values.controller.minReadySeconds }}
{{- end }}
selector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
podManagementPolicy: Parallel
{{- end }}
{{- if ge (int .Capabilities.KubeVersion.Minor) 22 }}
minReadySeconds: 10
minReadySeconds: {{ .Values.controller.minReadySeconds }}
{{- end }}
serviceName: {{ include "alloy.fullname" . }}
selector:
Expand Down
3 changes: 3 additions & 0 deletions operations/helm/charts/alloy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ controller:
# 'statefulset'.
parallelRollout: true

# -- How many additional seconds to wait before considering a pod ready.
minReadySeconds: 10

# -- Configures Pods to use the host network. When set to true, the ports that will be used must be specified.
hostNetwork: false

Expand Down

0 comments on commit 36b2ec9

Please sign in to comment.