From 7f3bc53d1229d69ea136a13b4cba764a1cb6feb6 Mon Sep 17 00:00:00 2001 From: Thiemo Date: Sun, 24 Mar 2019 21:57:06 +0100 Subject: [PATCH] fix(stable/unifi ingress): fix scoping issue (#12482) .Values was out of scope for hosts block, since its in a range statement Moved the failing access to unifiedService.enabled to a variable Signed-off-by: Thiemo Krause --- charts/unifi/Chart.yaml | 2 +- charts/unifi/templates/ingress.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/unifi/Chart.yaml b/charts/unifi/Chart.yaml index f4a93cdb..cc41de54 100644 --- a/charts/unifi/Chart.yaml +++ b/charts/unifi/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 5.9.29 description: Ubiquiti Network's Unifi Controller name: unifi -version: 0.3.2 +version: 0.3.3 keywords: - ubiquiti - unifi diff --git a/charts/unifi/templates/ingress.yaml b/charts/unifi/templates/ingress.yaml index 075e0470..6adc28dc 100644 --- a/charts/unifi/templates/ingress.yaml +++ b/charts/unifi/templates/ingress.yaml @@ -1,6 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "unifi.fullname" . -}} {{- $ingressPath := .Values.ingress.path -}} +{{- $unifiedServiceEnabled := .Values.unifiedService.enabled -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: @@ -32,7 +33,7 @@ spec: paths: - path: {{ $ingressPath }} backend: - {{- if .Values.unifiedService.enabled }} + {{- if $unifiedServiceEnabled }} serviceName: {{ $fullName }} {{- else }} serviceName: {{ $fullName }}-gui