From 1869640ddfee9a118892ccd96db65ba1186ed52b Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Fri, 12 Oct 2018 12:47:10 +0200 Subject: [PATCH] [stable/redis] NetworkPolicy podSelector should also match "release" (#8377) * [stable/redis] NetworkPolicy podSelector should also match "release" Currently, the `NetworkPolicy` created for the "redis" charts, only selects via the `app` label. However, this does not only match Redis pods created by the respective release, but matches Redis pods of _all_ releases of that Chart (which is -- I'm assuming -- not the intended behaviour). Signed-off-by: Martin Helmich * Bump chart version Signed-off-by: Martin Helmich --- stable/redis/Chart.yaml | 2 +- stable/redis/templates/networkpolicy.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index c25a68f8bb..e8bb354eb5 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.1.2 +version: 4.1.3 appVersion: 4.0.11 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/networkpolicy.yaml b/stable/redis/templates/networkpolicy.yaml index d6e721be2c..85718fb046 100644 --- a/stable/redis/templates/networkpolicy.yaml +++ b/stable/redis/templates/networkpolicy.yaml @@ -12,6 +12,7 @@ spec: podSelector: matchLabels: app: {{ template "redis.name" . }} + release: "{{ .Release.Name }}" ingress: # Allow inbound connections - ports: