pkgatlas has been deployed as release {{ .Release.Name }} in namespace {{ .Release.Namespace }}.
{{- if .Values.build.enabled }}

1. The build initContainer is populating the catalog first: it
   downloads real distro indexes (tens of MB, roughly a minute on the
   first run). Check progress with:

   kubectl logs -f -n {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "pkgatlas.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -c build

   (Restarting the pod re-runs each build with --refresh, which is a
   cheap conditional GET when upstreams are unchanged.)
{{- else }}

1. Snapshot builds are disabled (build.enabled=false); the server
   serves whatever snapshots the volume already holds.
{{- end }}

2. Port-forward to the service:

   kubectl port-forward -n {{ .Release.Namespace }} svc/{{ include "pkgatlas.fullname" . }} 8080:{{ .Values.service.port }}

3. Query the catalog:

   curl http://localhost:8080/v1/healthz
   curl 'http://localhost:8080/v1/q/lib/curses'
