Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ingestor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ When set, the digest must be the full canonical form (`sha256:` + 64 lowercase h

| Value | Default | When to override |
|---|---|---|
| `jobsManager.endpoint` | `http://jobs-manager.tracebloc.svc.cluster.local:8080` | The parent `tracebloc/client` release isn't in the `tracebloc` namespace, or you're testing against a port-forward. |
| `jobsManager.endpoint` | `http://jobs-manager.<release-namespace>.svc.cluster.local:8080` (auto-resolved) | The ingestor release and the parent `tracebloc/client` release live in different namespaces, or you're testing against a port-forward. |
| `serviceAccount.name` | `ingestor` | The cluster's `ingestionAuthz` policy expects a different SA name. (Default matches the parent chart's default.) |
| `image.repository` | `ghcr.io/tracebloc/ingestor` | Air-gapped mirror. |
| `idempotencyKey` | `<release>-<revision>` | You want strict at-most-once semantics across re-installs under the same release name. |
Expand Down
9 changes: 8 additions & 1 deletion ingestor/templates/post-install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ spec:
resources:
{{- toYaml .Values.hookResources | nindent 12 }}
env:
# client#127: default to the jobs-manager Service in this
# release's own namespace rather than hardcoding "tracebloc".
# Releases in any other namespace would otherwise hit
# `curl: Could not resolve host` at the hook. Customers
# whose ingestor release sits in a different namespace from
# the tracebloc release set `jobsManager.endpoint`
# explicitly to override.
- name: JOBS_MANAGER_ENDPOINT
value: {{ .Values.jobsManager.endpoint | quote }}
value: {{ .Values.jobsManager.endpoint | default (printf "http://jobs-manager.%s.svc.cluster.local:8080" .Release.Namespace) | quote }}
- name: SUBMIT_PATH
value: {{ .Values.jobsManager.submitPath | quote }}
command: ["/bin/sh", "-c"]
Expand Down
12 changes: 8 additions & 4 deletions ingestor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@ image:
# is currently rolling". When set must be sha256:<64 lowercase hex>.
digest: ""

# -- jobs-manager Service hostname + port to POST to. Defaults assume
# the tracebloc client chart's release name is "tracebloc". Override if
# you've named it differently (e.g., "my-tracebloc.<namespace>.svc...").
# -- jobs-manager Service hostname + port to POST to. When left empty
# (default), the post-install hook resolves the endpoint to
# `http://jobs-manager.<release-namespace>.svc.cluster.local:8080`,
# which is correct for the common case where the ingestor release is
# installed in the same namespace as the tracebloc client release.
# Override only when the two releases live in different namespaces, or
# when you need a non-standard port/host (e.g., port-forward testing).
jobsManager:
endpoint: http://jobs-manager.tracebloc.svc.cluster.local:8080
endpoint: ""
# The path on jobs-manager that accepts ingestion submissions. Stable
# API; only change if you're testing against a forked jobs-manager.
submitPath: /internal/submit-ingestion-run
Expand Down
Loading