From a078da5499da1fdf5e0bf8e582e182b09a14cbd3 Mon Sep 17 00:00:00 2001 From: sherbang Date: Sun, 5 May 2019 16:29:36 -0400 Subject: [PATCH] Fix unifi NOTES to find correct service (#13252) * Fix unifi NOTES to find correct service Unifi installs the gui service as unifi-gui, but the command in the notes points to a non-existent 'unifi' service. Use unifi.name + '-gui' to construct the service name here which duplicates the logic in gui-svc.yaml. Signed-off-by: Brian Johnson * Increment unifi version to 0.4.2 Signed-off-by: Brian Johnson --- charts/unifi/Chart.yaml | 2 +- charts/unifi/templates/NOTES.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/unifi/Chart.yaml b/charts/unifi/Chart.yaml index 94affea0..2c6c66a2 100644 --- a/charts/unifi/Chart.yaml +++ b/charts/unifi/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 5.10.19 description: Ubiquiti Network's Unifi Controller name: unifi -version: 0.4.1 +version: 0.4.2 keywords: - ubiquiti - unifi diff --git a/charts/unifi/templates/NOTES.txt b/charts/unifi/templates/NOTES.txt index afa05b5b..1a1ca017 100644 --- a/charts/unifi/templates/NOTES.txt +++ b/charts/unifi/templates/NOTES.txt @@ -9,8 +9,8 @@ echo http://$NODE_IP:$NODE_PORT {{- else if contains "LoadBalancer" .Values.guiService.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get svc -w {{ template "unifi.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "unifi.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "unifi.fullname" . }}-gui' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "unifi.fullname" . }}-gui -o jsonpath='{.status.loadBalancer.ingress[0].ip}') echo http://$SERVICE_IP:{{ .Values.guiService.port }} {{- else if contains "ClusterIP" .Values.guiService.type }} export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "unifi.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")