From 625449614962b16ea90d85b54beec720d50ea4dd Mon Sep 17 00:00:00 2001 From: Louis-Etienne Date: Tue, 31 Oct 2017 15:44:38 -0400 Subject: [PATCH] Configurable podLabels (#2566) --- stable/redis/Chart.yaml | 2 +- stable/redis/templates/deployment.yaml | 3 +++ stable/redis/values.yaml | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 0e85e1f0bb..b64e668d96 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 1.0.1 +version: 1.0.2 appVersion: 4.0.2 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: diff --git a/stable/redis/templates/deployment.yaml b/stable/redis/templates/deployment.yaml index 99c62c03f9..feda29bd1d 100644 --- a/stable/redis/templates/deployment.yaml +++ b/stable/redis/templates/deployment.yaml @@ -12,6 +12,9 @@ spec: metadata: labels: app: {{ template "redis.fullname" . }} +{{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} +{{- end }} spec: securityContext: runAsUser: 1001 diff --git a/stable/redis/values.yaml b/stable/redis/values.yaml index 3731fbb4f9..53eaad6d09 100644 --- a/stable/redis/values.yaml +++ b/stable/redis/values.yaml @@ -75,6 +75,10 @@ resources: nodeSelector: {} tolerations: [] +## Additional pod labels +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +podLabels: {} + networkPolicy: ## Enable creation of NetworkPolicy resources. ##