Thanks for installing {{ .Chart.Name }} {{ .Chart.Version }} (app {{ .Chart.AppVersion }}).

The collector is observing namespaces in:
  - explicit: {{ if .Values.watch.namespaces -}}{{ join ", " .Values.watch.namespaces }}{{- else -}}(none){{- end }}
  - label key: {{ default "(none)" .Values.watch.namespaceLabel }}

Hopsworks release being captured: {{ .Values.release.name }} {{ .Values.release.version }}

Useful commands:

  # Port-forward into the Service:
  kubectl -n {{ .Release.Namespace }} port-forward svc/{{ include "release-image-collector.fullname" . }} {{ .Values.service.port }}:{{ .Values.service.port }}

  # Live view of observed images:
  curl -fsS localhost:{{ .Values.service.port }}/observed | jq

  # Finalize and fetch the manifest:
  curl -fsS -XPOST localhost:{{ .Values.service.port }}/finalize
  curl -fsS -o {{ .Values.release.name }}-{{ .Values.release.version }}.cdx.json localhost:{{ .Values.service.port }}/manifest

{{- if and .Values.publish.enabled .Values.publish.registry .Values.publish.repo }}

  # Push the manifest to Harbor (target: {{ .Values.publish.registry }}/{{ .Values.publish.repo }}):
  curl -fsS -XPOST localhost:{{ .Values.service.port }}/publish | jq -r .ref

If you haven't yet, create the Harbor Secret referenced by the Deployment:

  kubectl -n {{ .Release.Namespace }} create secret generic {{ .Values.harbor.existingSecret }} \
    --from-literal={{ .Values.harbor.usernameKey }}='robot$ci+release-publisher' \
    --from-literal={{ .Values.harbor.passwordKey }}='<robot-token>'

Until the Secret exists /publish returns 412 Precondition Failed.
{{- else if .Values.publish.enabled }}

Publishing is enabled but publish.registry and/or publish.repo are unset.
/publish will return 412 Precondition Failed until both are configured.
{{- else }}

Publishing is disabled (publish.enabled=false). /publish will return 412.
{{- end }}

  # Reset the collector for a fresh collection cycle:
  curl -fsS -XPOST localhost:{{ .Values.service.port }}/reset
