[stable/redis] Add chart and release labels in pods (#6909)

This commit is contained in:
Javier J. Salmerón-García
2018-07-30 11:22:56 -07:00
committed by k8s-ci-robot
parent e82be5d67f
commit f7843843f3
4 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redis
version: 3.7.2
version: 3.7.3
appVersion: 4.0.10
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
@@ -13,6 +13,7 @@ spec:
metadata:
labels:
release: "{{ .Release.Name }}"
chart: {{ template "redis.chart" . }}
role: metrics
app: {{ template "redis.name" . }}
{{- if .Values.metrics.podLabels }}
@@ -11,6 +11,7 @@ spec:
selector:
matchLabels:
release: "{{ .Release.Name }}"
chart: {{ template "redis.chart" . }}
role: master
app: {{ template "redis.name" . }}
serviceName: "redis-master"
@@ -18,6 +19,7 @@ spec:
metadata:
labels:
release: "{{ .Release.Name }}"
chart: {{ template "redis.chart" . }}
role: master
app: {{ template "redis.name" . }}
{{- if .Values.master.podLabels }}
@@ -16,6 +16,7 @@ spec:
metadata:
labels:
release: "{{ .Release.Name }}"
chart: {{ template "redis.chart" . }}
role: slave
app: {{ template "redis.name" . }}
{{- if (.Values.slave.podLabels | default .Values.master.podLabels) }}