Skip to content

Commit

Permalink
🐛 Fix templating for port value type
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
  • Loading branch information
mhkarimi1383 committed Jan 24, 2025
1 parent 0e8cce7 commit b38b6a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/haproxy-redis-sentinel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: haproxy-redis-sentinel
description: A Helm chart for HAProxy with Redis Sentinel
version: 0.1.1
version: 0.1.2
appVersion: "0.0.11"
icon: https://raw.githubusercontent.com/ParminCloud/haproxy-redis-sentinel/master/docs/icon.png
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/haproxy-redis-sentinel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img width="33%" src="https://raw.githubusercontent.com/ParminCloud/haproxy-redis-sentinel/master/docs/icon.png">
</p>

![Version: 0.0.21](https://img.shields.io/badge/Version-0.0.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.11](https://img.shields.io/badge/AppVersion-0.0.11-informational?style=flat-square)

A Helm chart for HAProxy with Redis Sentinel

Expand Down Expand Up @@ -47,7 +47,7 @@ This chart can be used alongside every chart that provides access to Redis Senti
| haproxyRedisSentinel.image.repository | string | `"ghcr.io/parmincloud/haproxy-redis-sentinel"` | haproxy-redis-sentinel image repository |
| haproxyRedisSentinel.image.tag | string | `""` | haproxy-redis-sentinel image tag (defaults to appVersion of chart) |
| haproxyRedisSentinel.resources | object | `{}` | haproxy-redis-sentinel resources |
| haproxyRedisSentinel.sentinel | object | `{"host":"","masterName":"mymaster","password":"","port":""}` | Redis Sentinel information |
| haproxyRedisSentinel.sentinel | object | `{"host":"","masterName":"mymaster","password":"","port":""}` | Redis Sentinel information (Supports templating) |
| nameOverride | string | `""` | overrides name of the suffix used for resources (defaults to `haproxy`) |
| replicaCount | int | `1` | number of replicas for deployment |

Expand Down
6 changes: 5 additions & 1 deletion charts/haproxy-redis-sentinel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ spec:
imagePullPolicy: {{ .Values.haproxyRedisSentinel.image.pullPolicy }}
env:
- name: SENTINEL_PASSWORD
value: {{ tpl (.Values.haproxyRedisSentinel.sentinel.password | quote) . }}
value: {{ tpl (.Values.haproxyRedisSentinel.sentinel.password) . }}
- name: SENTINEL_HOST
value: {{ tpl .Values.haproxyRedisSentinel.sentinel.host . }}
- name: SENTINEL_PORT
{{- if .Values.haproxyRedisSentinel.sentinel.port | kindIs "int" }}
value: {{ tpl (.Values.haproxyRedisSentinel.sentinel.port | quote) . }}
{{- else }}
value: {{ tpl (.Values.haproxyRedisSentinel.sentinel.port) . }}
{{- end }}
- name: MASTER_NAME
value: {{ tpl .Values.haproxyRedisSentinel.sentinel.masterName . }}
- name: HAPROXY_BACKEND
Expand Down

0 comments on commit b38b6a2

Please sign in to comment.