{{/*
ConfigMap for default status.json values
Used by init container to set up initial status if file doesn't exist
*/}}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "gitops-status-server.fullname" . }}
  labels:
    {{- include "gitops-status-server.labels" . | nindent 4 }}
  {{- with .Values.annotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}
data:
  # Default status.json values (used for initialization)
  # This is not mounted directly; instead it's used by the init container
  # to set up the initial status.json in the shared emptyDir volume.
  # The actual status.json is stored on the emptyDir and updated via the API.
  status.json: |
    {{- .Values.statusJson | toJson | nindent 4 }}

