CloudHost platform has been deployed.

Release: {{ .Release.Name }}
Namespace: {{ include "cloudhost-platform.namespace" . }}

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

Public URLs (configure DNS to point at your Ingress controller):
  Frontend: {{ include "cloudhost-platform.frontendPublicUrl" . }}
  API:      {{ include "cloudhost-platform.apiPublicUrl" . }}

Build the frontend image with:
  docker build -t <registry>/cloudhost-frontend:<tag> \
    --build-arg NEXT_PUBLIC_API_URL={{ include "cloudhost-platform.apiPublicUrl" . }} \
    ./frontend

{{- if .Values.ingress.tls.enabled }}
TLS: enabled (cert-manager issuer: {{ .Values.ingress.tls.clusterIssuer }})
Ensure cert-manager and ClusterIssuer "{{ .Values.ingress.tls.clusterIssuer }}" exist.
{{- else }}
TLS: disabled (HTTP only)
{{- end }}

{{- else }}

Ingress is disabled. Port-forward to access services:
  kubectl port-forward -n {{ include "cloudhost-platform.namespace" . }} svc/{{ include "cloudhost-platform.frontend.fullname" . }} 3000:3000
  kubectl port-forward -n {{ include "cloudhost-platform.namespace" . }} svc/{{ include "cloudhost-platform.backend.fullname" . }} 4000:4000

{{- end }}

Backend CORS (FRONTEND_URL): {{ include "cloudhost-platform.frontendPublicUrl" . }}

After install, register your Kubernetes cluster in the admin panel (Clusters) so deployments can run.

To retrieve auto-generated secrets:
  kubectl get secret -n {{ include "cloudhost-platform.namespace" . }} {{ include "cloudhost-platform.secretName" . }} -o jsonpath='{.data.postgres-password}' | base64 -d; echo
