Skip to content

Commit 6dd8563

Browse files
authored
[redis] feat: use "common.namespace" (CloudPirates-io#332)
* [redis] feat: use "common.namespace" * [redis] update Chart.yaml
1 parent 92617cf commit 6dd8563

14 files changed

+28
-20
lines changed

charts/redis/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/cloudpirates
4-
version: 1.1.1
5-
digest: sha256:8da3c04e2c4a1ebfff4f21936399938e0f3fcf9fbd2f7135e7e907ce725b8f00
6-
generated: "2025-09-30T20:54:19.733262+02:00"
4+
version: 1.1.2
5+
digest: sha256:5e34e3bab5f014ae1cf5d4c2976c84e03ccb4859105e60aefb3c264ad86b5718
6+
generated: "2025-10-10T09:32:07.534667076+02:00"

charts/redis/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: redis
33
description: An open source, in-memory data structure store used as a database, cache, and message broker.
44
type: application
5-
version: 0.6.2
6-
appVersion: "8.2.1"
5+
version: 0.6.3
6+
appVersion: "8.2.2"
77
keywords:
88
- redis
99
- database

charts/redis/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ redis-cli -h my-redis -a $REDIS_PASSWORD
7373
|---------------------| ----------------------------------------------------------------------- | ------------ |
7474
| `nameOverride` | String to partially override redis.fullname | `""` |
7575
| `fullnameOverride` | String to fully override redis.fullname | `""` |
76+
| `namespaceOverride` | String to override the namespace for all resources | `""` |
7677
| `commonLabels` | Labels to add to all deployed objects | `{}` |
7778
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
7879
| `architecture` | Redis architecture. Allowed values: `standalone` or `replication` | `standalone` |

charts/redis/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: ConfigMap
44
metadata:
55
name: {{ include "redis.fullname" . }}-config
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "common.namespace" . }}
77
labels:
88
{{- include "redis.labels" . | nindent 4 }}
99
data:

charts/redis/templates/headless-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ include "redis.fullname" . }}-headless
5-
namespace: {{ .Release.Namespace }}
5+
namespace: {{ include "common.namespace" . }}
66
labels:
77
{{- include "redis.labels" . | nindent 4 }}
88
spec:

charts/redis/templates/metrics-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: {{ include "redis.fullname" . }}-metrics
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "common.namespace" . }}
77
labels:
88
{{- include "redis.labels" . | nindent 4 }}
99
app.kubernetes.io/component: metrics

charts/redis/templates/prestop-configmap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: ConfigMap
44
metadata:
55
name: {{ include "redis.fullname" . }}-prestop-script
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "common.namespace" . }}
77
labels:
88
{{- include "redis.labels" . | nindent 4 }}
99
data:
@@ -19,8 +19,8 @@ data:
1919
REDIS_PORT="{{ .Values.service.port }}"
2020
SENTINEL_PORT="{{ .Values.sentinel.port }}"
2121
MASTER_NAME="{{ .Values.sentinel.masterName }}"
22-
HEADLESS_SERVICE="{{ include "redis.fullname" . }}-headless.{{ .Release.Namespace }}.svc.cluster.local"
23-
REDIS_SERVICE="{{ include "redis.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local"
22+
HEADLESS_SERVICE="{{ include "redis.fullname" . }}-headless.{{ include "common.namespace" . }}.svc.cluster.local"
23+
REDIS_SERVICE="{{ include "redis.fullname" . }}.{{ include "common.namespace" . }}.svc.cluster.local"
2424
2525
# Set authentication if enabled
2626
{{- if .Values.auth.enabled }}

charts/redis/templates/secret.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ apiVersion: v1
33
kind: Secret
44
metadata:
55
name: {{ include "redis.fullname" . }}
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "common.namespace" . }}
77
labels:
88
{{- include "redis.labels" . | nindent 4 }}
99
type: Opaque
1010
data:
11-
{{- $existingSecret := (lookup "v1" "Secret" .Release.Namespace (include "redis.fullname" .)) }}
11+
{{- $existingSecret := (lookup "v1" "Secret" (include "common.namespace" .) (include "redis.fullname" .)) }}
1212
{{- $existingPassword := "" }}
1313
{{- if and $existingSecret $existingSecret.data }}
1414
{{- $existingPassword = index $existingSecret.data "redis-password" }}

charts/redis/templates/sentinel-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: {{ include "redis.fullname" . }}-sentinel
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "common.namespace" . }}
77
labels:
88
{{- include "redis.labels" . | nindent 4 }}
99
app.kubernetes.io/component: sentinel

charts/redis/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ include "redis.fullname" . }}
5-
namespace: {{ .Release.Namespace }}
5+
namespace: {{ include "common.namespace" . }}
66
labels:
77
{{- include "redis.labels" . | nindent 4 }}
88
{{- if and .Values.sentinel.enabled (eq .Values.architecture "replication") }}

0 commit comments

Comments
 (0)