From 7829f17eb61aa8529d6a24011dd91a584f3857bf Mon Sep 17 00:00:00 2001 From: Ashley Schuett Date: Wed, 20 Nov 2019 17:30:56 +0100 Subject: [PATCH] fix error on ingress or service name not specified --- janus/templates/ingress.yaml | 2 +- janus/templates/service.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/janus/templates/ingress.yaml b/janus/templates/ingress.yaml index 4a44d1bd9..129678451 100644 --- a/janus/templates/ingress.yaml +++ b/janus/templates/ingress.yaml @@ -1,5 +1,5 @@ {{- if .Values.ingress.enabled -}} -{{- $fullName := include "janus.fullname" ( dict "name" .Values.ingress.name ) -}} +{{- $fullName := include "janus.fullname" ( dict "Values" .Values "Chart" .Chart "Release" .Release "name" .Values.ingress.name ) -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: diff --git a/janus/templates/service.yaml b/janus/templates/service.yaml index ff3b49e18..b7139c4ad 100644 --- a/janus/templates/service.yaml +++ b/janus/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "janus.fullname" ( dict "name" .Values.service.name ) }} + name: {{ include "janus.fullname" ( dict "Values" .Values "Chart" .Chart "Release" .Release "name" .Values.service.name ) }} labels: {{ include "janus.labels" . | indent 4 }} spec: