[bitnami/redis] Add support for Sentinel resource annotations (#15652)

* Add support for Sentinel resource annotations

Signed-off-by: Siam Zamir <siamzam@gmail.com>

* Add missing default value for sentinel.annotations

Signed-off-by: Siam Zamir <siamzam@gmail.com>

---------

Signed-off-by: Siam Zamir <siamzam@gmail.com>
This commit is contained in:
Siam Zamir
2023-03-22 09:52:41 +01:00
committed by GitHub
parent 96c44e2925
commit 47fadd1615
3 changed files with 12 additions and 2 deletions

View File

@@ -338,6 +338,7 @@ The command removes all the Kubernetes components associated with the chart and
| `sentinel.image.pullPolicy` | Redis&reg; Sentinel image pull policy | `IfNotPresent` |
| `sentinel.image.pullSecrets` | Redis&reg; Sentinel image pull secrets | `[]` |
| `sentinel.image.debug` | Enable image debug mode | `false` |
| `sentinel.annotations` | Additional custom annotations for Redis&reg; Sentinel resource | `{}` |
| `sentinel.masterSet` | Master set name | `mymaster` |
| `sentinel.quorum` | Sentinel Quorum | `2` |
| `sentinel.getMasterTimeout` | Amount of time to allow before get_sentinel_master_info() times out. | `220` |

View File

@@ -10,8 +10,14 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- if or .Values.commonAnnotations .Values.sentinel.annotations }}
annotations:
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.sentinel.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.sentinel.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
replicas: {{ .Values.replica.replicaCount }}

View File

@@ -1013,6 +1013,9 @@ sentinel:
## Enable debug mode
##
debug: false
## @param sentinel.annotations Additional custom annotations for Redis&reg; Sentinel resource
##
annotations: {}
## @param sentinel.masterSet Master set name
##
masterSet: mymaster