refactor sentinel
All checks were successful
lint-and-test / lint-helm (push) Successful in 13s
release-charts-redis-replication / release (push) Successful in 21s
lint-and-test / chart-testing (push) Successful in 34s
renovate / renovate (push) Successful in 38s

This commit is contained in:
2026-01-08 15:42:48 -06:00
parent 2fd3129e70
commit 57c2ce938f
5 changed files with 27 additions and 63 deletions

View File

@@ -9,14 +9,6 @@ Expand the names
{{- end }}
{{- end }}
{{- define "redis.sentinelName" -}}
{{- if .Values.sentinelNameOverride }}
{{- .Values.sentinelNameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "redis-sentinel-%s" .Release.Name -}}
{{- end }}
{{- end }}
{{/*
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
*/}}
@@ -57,9 +49,3 @@ app.kubernetes.io/name: {{ include "redis.replicationName" $ }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
{{- end }}
{{- define "redis.sentinelSelectorLabels" -}}
app.kubernetes.io/name: {{ include "redis.sentinelName" $ }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
{{- end }}