From 4c0388f030ad0a01c281d75fa7fdb0023b33273f Mon Sep 17 00:00:00 2001 From: Arcadie Condrat Date: Tue, 14 Nov 2017 23:38:13 +0200 Subject: [PATCH] use {{ .Release.Name }} for resource naming --- incubator/redis-exporter/templates/deployment.yaml | 4 ++-- incubator/redis-exporter/templates/service.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/incubator/redis-exporter/templates/deployment.yaml b/incubator/redis-exporter/templates/deployment.yaml index 2a6287ec78..1a1b4f5af9 100644 --- a/incubator/redis-exporter/templates/deployment.yaml +++ b/incubator/redis-exporter/templates/deployment.yaml @@ -1,7 +1,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: {{ template "redis-exporter.fullname" . }} + name: {{ .Release.Name }} labels: app: {{ template "redis-exporter.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} @@ -23,7 +23,7 @@ spec: - containerPort: {{ .Values.service.internalPort }} env: - name: REDIS_ADDR - value: {{ .Values.redisAddress }} + value: {{ .Values.redisAddress }} livenessProbe: httpGet: path: / diff --git a/incubator/redis-exporter/templates/service.yaml b/incubator/redis-exporter/templates/service.yaml index 0c04c48878..1ad7958ec5 100644 --- a/incubator/redis-exporter/templates/service.yaml +++ b/incubator/redis-exporter/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ template "redis-exporter.fullname" . }} + name: {{ .Release.Name }} labels: app: {{ template "redis-exporter.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}