
* Concourse can be accessed:

  * Within your cluster, at the following DNS name at port {{ .Values.concourse.web.bindPort }}:

    {{ template "concourse.web.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local

  {{- if .Values.web.ingress.enabled }}

  * From outside the cluster, the URL(s) are:
    {{ range .Values.web.ingress.hosts }}
    http://{{ . }}
    {{- end }}
  {{- else }}

  * From outside the cluster, run these commands in the same shell:
    {{- if contains "NodePort" .Values.web.service.type }}

    export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "concourse.web.fullname" . }})
    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.web.service.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 "concourse.web.fullname" . }}'

    export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "concourse.web.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
    echo http://$SERVICE_IP:{{ .Values.concourse.web.bindPort }}
    {{- else if contains "ClusterIP"  .Values.web.service.type }}

    export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "concourse.web.fullname" . }}" -o jsonpath="{.items[0].metadata.name}")
    echo "Visit http://127.0.0.1:8080 to use Concourse"
    kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 8080:{{ .Values.concourse.web.bindPort }}
    {{- end }}
  {{- end }}
* If this is your first time using Concourse, follow the tutorials at https://concourse-ci.org/tutorials.html

{{- if .Values.worker.enabled }}
{{- if .Values.concourse.worker.baggageclaim.driver }}
{{- if contains "naive" .Values.concourse.worker.baggageclaim.driver }}

*******************
******WARNING******
*******************

You are using the "naive" baggage claim driver, which is also the default value for this chart.

This is the default for compatibility reasons, but is very space inefficient, and should be changed to either "btrfs" (recommended) or "overlay" depending on that filesystem's support in the Linux kernel your cluster is using.

Please see https://github.com/concourse/concourse/issues/1230 and https://github.com/concourse/concourse/issues/1966 for background.

{{- end }}
{{- end }}
{{- end }}



{{- if .Values.concourse.web.localAuth.enabled }}
{{- if contains "test:test" .Values.secrets.localUsers }}

*******************
******WARNING******
*******************

You're using the default "test" user with the default "test" password.

Make sure you either disable local auth or change the combination to something more secure, preferably specifying a password in the bcrypted form.

Please see `README.md` for examples.

{{- end }}
{{- end }}
