Forgejo has been deployed!

===========================================================================
  IMPORTANT: Generate secrets before first use
===========================================================================

If you did not pre-generate a SECRET_KEY, run the following to create one
and upgrade your release with it:

  kubectl exec -it deploy/{{ include "forgejo.fullname" . }} -- \
    forgejo generate secret SECRET_KEY

Then set it in your values:
  forgejo:
    security:
      secretKey: "<generated-value>"

And upgrade:
  helm upgrade {{ .Release.Name }} . -f your-values.yaml

===========================================================================
  Access Forgejo
===========================================================================

{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
  Web URL: http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .host }}
{{- end }}
{{- else if eq .Values.service.http.type "NodePort" }}
  Get the Node IP:
    export NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}")
    export NODE_PORT=$(kubectl get svc {{ include "forgejo.fullname" . }}-http -o jsonpath="{.spec.ports[0].nodePort}")
    echo "http://$NODE_IP:$NODE_PORT"
{{- else if eq .Values.service.http.type "LoadBalancer" }}
  Wait for the external IP:
    kubectl get svc {{ include "forgejo.fullname" . }}-http --watch
{{- else }}
  Forward the port locally:
    kubectl port-forward svc/{{ include "forgejo.fullname" . }}-http 3000:{{ .Values.service.http.port }}
    echo "http://127.0.0.1:3000"
{{- end }}

SSH clone URL: ssh://git@{{ .Values.forgejo.server.domain }}:{{ .Values.forgejo.server.sshPort }}/<user>/<repo>.git

===========================================================================
  Database
===========================================================================
{{- if eq .Values.forgejo.database.type "sqlite3" }}
  Using SQLite (single-replica only). For production, switch to PostgreSQL
  or MySQL and set forgejo.database.type accordingly.
{{- else }}
  DB type : {{ .Values.forgejo.database.type }}
  DB host : {{ include "forgejo.databaseHost" . }}
{{- end }}
