From 43b94d469bf9ffa61ec539606e32885ea1ce75e5 Mon Sep 17 00:00:00 2001 From: drivebyer Date: Thu, 5 Dec 2024 16:17:15 +0800 Subject: [PATCH] fix: initContainer enabled properties not define in template - Bumped version and appVersion for redis, redis-cluster, redis-replication, and redis-sentinel charts to 0.16.4, 0.16.4, 0.16.6, and 0.16.8 respectively. - Enhanced initContainer properties in templates to include the 'enabled' field for better configuration management. This update ensures consistency across the Redis charts and improves template rendering. Signed-off-by: drivebyer --- charts/redis-cluster/Chart.yaml | 4 ++-- charts/redis-cluster/templates/_helpers.tpl | 1 + charts/redis-replication/Chart.yaml | 4 ++-- charts/redis-replication/templates/_helpers.tpl | 1 + charts/redis-sentinel/Chart.yaml | 4 ++-- charts/redis-sentinel/templates/_helpers.tpl | 1 + charts/redis/Chart.yaml | 4 ++-- charts/redis/templates/_helpers.tpl | 1 + 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/charts/redis-cluster/Chart.yaml b/charts/redis-cluster/Chart.yaml index 7acf90f44..6238ab9cb 100644 --- a/charts/redis-cluster/Chart.yaml +++ b/charts/redis-cluster/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: redis-cluster description: Provides easy redis setup definitions for Kubernetes services, and deployment. -version: 0.16.3 -appVersion: "0.16.3" +version: 0.16.4 +appVersion: "0.16.4" home: https://github.com/ot-container-kit/redis-operator sources: - https://github.com/ot-container-kit/redis-operator diff --git a/charts/redis-cluster/templates/_helpers.tpl b/charts/redis-cluster/templates/_helpers.tpl index 0dd154eb4..352436973 100644 --- a/charts/redis-cluster/templates/_helpers.tpl +++ b/charts/redis-cluster/templates/_helpers.tpl @@ -64,6 +64,7 @@ env: {{- define "initContainer.properties" -}} {{- with .Values.initContainer }} {{- if .enabled }} +enabled: {{ .enabled }} image: {{ .image }} {{- if .imagePullPolicy }} imagePullPolicy: {{ .imagePullPolicy }} diff --git a/charts/redis-replication/Chart.yaml b/charts/redis-replication/Chart.yaml index b5d2bd4ac..800a0592f 100644 --- a/charts/redis-replication/Chart.yaml +++ b/charts/redis-replication/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: redis-replication description: Provides easy redis setup definitions for Kubernetes services, and deployment. -version: 0.16.5 -appVersion: "0.16.5" +version: 0.16.6 +appVersion: "0.16.6" type: application engine: gotpl maintainers: diff --git a/charts/redis-replication/templates/_helpers.tpl b/charts/redis-replication/templates/_helpers.tpl index cfc58681b..944ea732c 100644 --- a/charts/redis-replication/templates/_helpers.tpl +++ b/charts/redis-replication/templates/_helpers.tpl @@ -19,6 +19,7 @@ app.kubernetes.io/component: middleware {{- define "initContainer.properties" -}} {{- with .Values.initContainer }} {{- if .enabled }} +enabled: {{ .enabled }} image: {{ .image }} {{- if .imagePullPolicy }} imagePullPolicy: {{ .imagePullPolicy }} diff --git a/charts/redis-sentinel/Chart.yaml b/charts/redis-sentinel/Chart.yaml index e00ceedd5..8168667fd 100644 --- a/charts/redis-sentinel/Chart.yaml +++ b/charts/redis-sentinel/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: redis-sentinel description: Provides easy redis setup definitions for Kubernetes services, and deployment. -version: 0.16.7 -appVersion: "0.16.7" +version: 0.16.8 +appVersion: "0.16.8" home: https://github.com/ot-container-kit/redis-operator sources: - https://github.com/ot-container-kit/redis-operator diff --git a/charts/redis-sentinel/templates/_helpers.tpl b/charts/redis-sentinel/templates/_helpers.tpl index c918548fd..49e46984d 100644 --- a/charts/redis-sentinel/templates/_helpers.tpl +++ b/charts/redis-sentinel/templates/_helpers.tpl @@ -19,6 +19,7 @@ app.kubernetes.io/component: middleware {{- define "initContainer.properties" -}} {{- with .Values.initContainer }} {{- if .enabled }} +enabled: {{ .enabled }} image: {{ .image }} {{- if .imagePullPolicy }} imagePullPolicy: {{ .imagePullPolicy }} diff --git a/charts/redis/Chart.yaml b/charts/redis/Chart.yaml index e6fc0d3f6..8af3add95 100644 --- a/charts/redis/Chart.yaml +++ b/charts/redis/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: redis description: Provides easy redis setup definitions for Kubernetes services, and deployment. -version: 0.16.3 -appVersion: "0.16.3" +version: 0.16.4 +appVersion: "0.16.4" home: https://github.com/ot-container-kit/redis-operator sources: - https://github.com/ot-container-kit/redis-operator diff --git a/charts/redis/templates/_helpers.tpl b/charts/redis/templates/_helpers.tpl index 698c901ea..abdeb992a 100644 --- a/charts/redis/templates/_helpers.tpl +++ b/charts/redis/templates/_helpers.tpl @@ -19,6 +19,7 @@ app.kubernetes.io/component: middleware {{- define "initContainer.properties" -}} {{- with .Values.initContainer }} {{- if .enabled }} +enabled: {{ .enabled }} image: {{ .image }} {{- if .imagePullPolicy }} imagePullPolicy: {{ .imagePullPolicy }}