Thank you for installing {{ .Chart.Name }}!
{{- /* Null tests, never truthiness: Go templates treat 0 as false and a legacy
       errorRatePercent: 0 is exactly the value worth warning about. */}}
{{- if and (not (kindIs "invalid" .Values.alerts.errorRatePercent)) (kindIs "invalid" .Values.alerts.serverErrorPercent) }}

DEPRECATION: alerts.errorRatePercent is honoured as alerts.serverErrorPercent, and now
gates server errors (5xx) only — it used to be the blended 4xx+5xx rate. If you raised it
to damp noise, re-check it. Set alerts.clientErrorPercent explicitly if you do not want the
new 4xx storm threshold.
{{- else if and (not (kindIs "invalid" .Values.alerts.errorRatePercent)) (not (kindIs "invalid" .Values.alerts.serverErrorPercent)) }}

DEPRECATION: alerts.serverErrorPercent wins; the deprecated alerts.errorRatePercent is ignored.
{{- end }}

Rootcoz is a single-replica deployment (SQLite on a ReadWriteOnce PVC). Do not scale replicas above 1.

{{- if .Values.route.enabled }}
{{- if .Values.route.host }}

Route: https://{{ .Values.route.host }}
{{- else }}

Route: auto-generated by OpenShift. Get the hostname:
  oc get route {{ include "rootcoz.fullname" . }}-route -n {{ .Release.Namespace }} -o jsonpath='{.spec.host}'
{{- end }}
{{- else if .Values.ingress.enabled }}

Ingress: {{ if .Values.ingress.tls.enabled }}https{{ else }}http{{ end }}://{{ .Values.ingress.host }}
{{- else }}

No external Route/Ingress configured. Access via port-forward:
  kubectl port-forward svc/{{ include "rootcoz.fullname" . }} 8000:8000 -n {{ .Release.Namespace }}
{{- end }}

Bootstrap admin login:
  Username: admin
  API key:
    kubectl get secret {{ include "rootcoz.credentialsSecretName" . }} -n {{ .Release.Namespace }} \
      -o jsonpath='{.data.ADMIN_KEY}' | base64 -d; echo

Configure Jenkins, Jira, GitHub, and other integrations in Server Settings after login.

WARNING: helm uninstall keeps the PVC (data retained). Do not delete the encryption secret
({{ include "rootcoz.encryptionSecretName" . }}) independently or the database becomes unreadable.

Run health check: helm test {{ .Release.Name }} -n {{ .Release.Namespace }}
