mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
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 <krausethiemo@googlemail.com>
This commit is contained in:
parent
652612e76b
commit
7f3bc53d12
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user