🌙 M00N Report has been deployed!

{{- $host := (index .Values.ingress.hosts 0).host }}

=============================================================================
 ACCESS YOUR INSTALLATION
=============================================================================

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

Your M00N Report dashboard is available at:

  🌐 URL: https://{{ $host }}

{{- if .Values.ingress.tls }}
  🔒 TLS is enabled
{{- else }}
  ⚠️  TLS is NOT enabled - configure ingress.tls for production!
{{- end }}

{{- else }}

Ingress is disabled. To access M00N Report, run:

  kubectl port-forward -n {{ .Release.Namespace }} svc/{{ include "m00n-report.fullname" . }}-api 4000:4000

Then open: http://localhost:4000

{{- end }}

=============================================================================
 VERIFY DEPLOYMENT
=============================================================================

Check pod status:
  kubectl get pods -n {{ .Release.Namespace }}

Check logs:
  kubectl logs -n {{ .Release.Namespace }} -l app=m00n-api -f

Check events (for troubleshooting):
  kubectl get events -n {{ .Release.Namespace }} --sort-by='.lastTimestamp'

=============================================================================
 FIRST-TIME SETUP
=============================================================================

1. Navigate to https://{{ $host }}
2. Create your admin account
3. Configure your first project
4. Install a reporter (Playwright, Jest, or JUnit5)

Documentation: https://m00nreport.com/documentation

=============================================================================
 CONFIGURATION NOTES
=============================================================================

{{- if .Values.database.external }}
📊 Database: External ({{ .Values.database.host }}:{{ .Values.database.port }})
{{- else }}
📊 Database: In-cluster PostgreSQL (managed by Bitnami subchart)
{{- end }}

{{- if .Values.redisConfig.external }}
🔴 Redis: External ({{ .Values.redisConfig.host }}:{{ .Values.redisConfig.port }})
{{- else }}
🔴 Redis: In-cluster Redis (managed by Bitnami subchart)
{{- end }}

{{- if .Values.metrics.serviceMonitor.enabled }}
📈 Prometheus: ServiceMonitor enabled (metrics at /api/metrics)
{{- end }}

{{- if .Values.networkPolicy.enabled }}
🔐 Network Policies: Enabled
{{- end }}

=============================================================================
 CREDENTIAL ROTATION
=============================================================================

To force a rolling restart after rotating secrets:

  helm upgrade {{ .Release.Name }} ./m00n-report \
    -n {{ .Release.Namespace }} \
    --set podRestartTrigger="$(date +%Y-%m-%d-%H%M%S)"

Or use Stakater Reloader: https://github.com/stakater/Reloader

=============================================================================
 SUPPORT
=============================================================================

📧 Email: support@m00nreport.com
📚 Docs:  https://m00nreport.com/documentation
🎫 License: https://m00nreport.com/self-hosted
