{{- if not .Values.ingress.enabled }}
1. Get the TCA URL by running these commands:
  {{- if contains "NodePort" .Values.service.tcaUi.type }}
  export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "helm-chart.fullname" . }}-ui)
  export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
  echo http://$NODE_IP:$NODE_PORT
  {{- else if contains "LoadBalancer" .Values.service.tcaUi.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 --namespace {{ .Release.Namespace }} svc -w {{ include "helm-chart.fullname" . }}-ui'
  export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "helm-chart.fullname" . }}-ui --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
  echo http://$SERVICE_IP:{{ .Values.service.port }}
  {{- else if contains "ClusterIP" .Values.service.tcaUi.type }}
  export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "helm-chart.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
  {{- end }}
{{- else }}
  {{- if ne $.Values.ingress.host "*"}}
1. To access TCA UI, visit:
  http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $.Values.ingress.host }}
2. To access Platform Manager, visit:
  http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $.Values.ingress.host }}:{{ $.Values.service.platformManager.port }}
  {{- else }}
No FQDN is specified. Get the IP address by running this command:
  export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
1. To access TCA UI, visit:
  http{{ if $.Values.ingress.tls }}s{{ end }}://${SERVICE_IP}
2. To access Platform Manager, visit:
  http{{ if $.Values.ingress.tls }}s{{ end }}://${SERVICE_IP}:{{ $.Values.service.platformManager.port }}
  {{- end }}
{{- end }}
