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 <brian@sherbang.com>

* Increment unifi version to 0.4.2

Signed-off-by: Brian Johnson <brian@sherbang.com>
This commit is contained in:
sherbang 2019-05-05 16:29:36 -04:00 committed by Jeff Billimek
parent c2df150921
commit a078da5499
No known key found for this signature in database
GPG Key ID: 214B3EF39B4956B7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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}")