mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/redis-ha] Allow for custom labels on redis pod (#11634)
* [stable/redis-ha] Allow for custom labels on redis pod Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> *What this PR does / why we need it:* * Added the ability to assign extra labels to the redis pod (in addition to the release and app labels) Currently there is no way to assign custom labels to the redis pod, however it is occasionally necessary for custom labels to be assigned to the pod. An example may be a label that is used to enforce a certain network security policy (this is our particular use case). Without this we are completely unable to proceed with this particular helm chart. Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> * [stable/redis-ha] Updated the semver minor version Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> Updated the minor version for this chart as new functionality (the ability to add custom labels) was added to the chart. This is fully backwards compatible. Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> * [stable/redis-ha] Added labels map to values.yaml Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> Added labels map to the values.yaml (base config for the chart) Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> * [stable/redis-ha] Indentation for labels line in yaml no longer greater than 8 spaces Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com> This line doesn't need to be indented more than 8 spaces Signed-off-by: Francesco Lanciana <francescolanciana@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
bfd68b131a
commit
4fcb0b0d33
@@ -5,7 +5,7 @@ keywords:
|
||||
- redis
|
||||
- keyvalue
|
||||
- database
|
||||
version: 3.1.6
|
||||
version: 3.2.0
|
||||
appVersion: 5.0.3
|
||||
description: Highly available Kubernetes implementation of Redis
|
||||
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
|
||||
|
||||
@@ -30,6 +30,9 @@ spec:
|
||||
labels:
|
||||
release: {{ .Release.Name }}
|
||||
app: {{ template "redis-ha.name" . }}
|
||||
{{- range $key, $value := .Values.labels }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
|
||||
@@ -8,6 +8,9 @@ image:
|
||||
## replicas number for each component
|
||||
replicas: 3
|
||||
|
||||
## Custom labels for the redis pod
|
||||
labels: {}
|
||||
|
||||
## Redis specific configuration options
|
||||
redis:
|
||||
port: 6379
|
||||
|
||||
Reference in New Issue
Block a user