From 402c790320b1b58ab7103dcdfbbef14fc9ea4c61 Mon Sep 17 00:00:00 2001 From: Pravin Dahal Date: Tue, 22 Jul 2025 18:36:15 +0200 Subject: [PATCH 1/2] feat: Add support for `.Values.haproxy.deploymentAnnotations` Signed-off-by: Pravin Dahal --- charts/redis-ha/Chart.yaml | 2 +- charts/redis-ha/README.md | 1 + charts/redis-ha/templates/redis-haproxy-deployment.yaml | 6 ++++++ charts/redis-ha/values.yaml | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/redis-ha/Chart.yaml b/charts/redis-ha/Chart.yaml index 2cced456..594f9ef4 100644 --- a/charts/redis-ha/Chart.yaml +++ b/charts/redis-ha/Chart.yaml @@ -5,7 +5,7 @@ keywords: - redis - keyvalue - database -version: 4.33.8 +version: 4.34.0 appVersion: 7.2.7 description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png diff --git a/charts/redis-ha/README.md b/charts/redis-ha/README.md index e1562b08..998dcf37 100644 --- a/charts/redis-ha/README.md +++ b/charts/redis-ha/README.md @@ -241,6 +241,7 @@ The following table lists the configurable parameters of the Redis chart and the | `haproxy.containerPort` | Modify HAProxy deployment container port | int | `6379` | | `haproxy.containerSecurityContext` | Security context to be added to the HAProxy containers. | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}` | | `haproxy.customConfig` | Allows for custom config-haproxy.cfg file to be applied. If this is used then default config will be overwriten | string | `nil` | +| `haproxy.deploymentAnnotations` | HAProxy template deployment annotations | object | `{}` | | `haproxy.deploymentStrategy` | Deployment strategy for the haproxy deployment | object | `{"type":"RollingUpdate"}` | | `haproxy.emptyDir` | Configuration of `emptyDir` | object | `{}` | | `haproxy.enabled` | Enabled HAProxy LoadBalancing/Proxy | bool | `false` | diff --git a/charts/redis-ha/templates/redis-haproxy-deployment.yaml b/charts/redis-ha/templates/redis-haproxy-deployment.yaml index 07677fcd..29433e74 100644 --- a/charts/redis-ha/templates/redis-haproxy-deployment.yaml +++ b/charts/redis-ha/templates/redis-haproxy-deployment.yaml @@ -9,6 +9,12 @@ metadata: {{- range $key, $value := .Values.extraLabels }} {{ $key }}: {{ $value | quote }} {{- end }} + {{- if .Values.haproxy.deploymentAnnotations }} + annotations: + {{- range $key, $value := .Values.haproxy.deploymentAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: {{- with .Values.haproxy.deploymentStrategy }} strategy: diff --git a/charts/redis-ha/values.yaml b/charts/redis-ha/values.yaml index e857f158..dbc8b8d8 100644 --- a/charts/redis-ha/values.yaml +++ b/charts/redis-ha/values.yaml @@ -141,6 +141,10 @@ haproxy: # -- HAProxy template annotations annotations: {} + + # -- HAProxy deployment annotations + deploymentAnnotations: {} + # -- HAProxy resources resources: {} # -- Configuration of `emptyDir` From fc4154a7f4e73aee03f656104644c38d29a8a0d3 Mon Sep 17 00:00:00 2001 From: Aaron Layfield Date: Fri, 12 Sep 2025 09:13:36 +0900 Subject: [PATCH 2/2] Trigger action --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0d19ae47..6d6e0de8 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ ### Charts for numerous projects. Migrated from `helm/stable` due to deprecation timeline. Charts are deployed via Github Actions to the `gh-pages` branch. +