Skip to content

Commit

Permalink
Merge pull request #423 from hellofresh/patch/fix-templates
Browse files Browse the repository at this point in the history
fix error on ingress or service name not specified
  • Loading branch information
Ashley Schuett authored Nov 20, 2019
2 parents 8d75969 + 7829f17 commit 680e0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion janus/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion janus/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 680e0cb

Please sign in to comment.