Skip to content

fix(helm): use curl instead of wget for token job API calls#31

Merged
charlie83Gs merged 1 commit intomainfrom
fix/token-job-use-curl
Mar 25, 2026
Merged

fix(helm): use curl instead of wget for token job API calls#31
charlie83Gs merged 1 commit intomainfrom
fix/token-job-use-curl

Conversation

@charlie83Gs
Copy link
Copy Markdown
Contributor

Summary

The Hatchet image's BusyBox wget does not support --method=PATCH. The token job successfully generates the token but fails when trying to patch the Kubernetes secret.

Switch to curl (available in the Hatchet image) for all K8s API calls in the token job.

Test plan

  • helm template renders correctly
  • Token job patches secret and restarts workers successfully

🤖 Generated with Claude Code

The Hatchet image's BusyBox wget does not support --method=PATCH.
Switch to curl which is available in the image and supports all
HTTP methods natively.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@charlie83Gs charlie83Gs merged commit 583c14b into main Mar 25, 2026
4 checks passed
@charlie83Gs charlie83Gs deleted the fix/token-job-use-curl branch March 25, 2026 13:17
charlie83Gs added a commit that referenced this pull request Mar 27, 2026
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
charlie83Gs added a commit that referenced this pull request Apr 20, 2026
…s (Phase 2 #31) (#276)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
charlie83Gs added a commit that referenced this pull request Apr 20, 2026
…onPipeline (Phase 2 #32)

Adds ``kt_hatchet.composition.resolve_phase_settings(state, graph_id,
phase)`` — the shared helper that translates a running graph's
``GraphConfig`` into the ``phase_settings`` dict
``DecompositionPipeline`` now accepts (#31 / #276). Fails fast on
resolver error: a graph opting into a narrower composition MUST NOT
silently widen to Settings defaults on a transient DB hiccup —
matches the tenancy-invariant posture of
``_resolve_composition_selectors`` in ``web_search``.

Wired into the two Hatchet tasks that construct
``DecompositionPipeline`` directly:

- ``decompose_chunk_task`` (worker-search.workflows.search)
- ``decompose_source_task`` (worker-search.workflows.decompose)

Worker-nodes call sites (``GatherFactsPipeline``, ``BuildingPipeline``,
``NodePipeline``) go through ``AgentContext`` which doesn't expose
``graph_id`` — threading there lands in the companion #33 PR once
``AgentContext`` grows the knob.

5 new unit tests on the helper cover: composition present, graph_id
None fallback, services None fallback, resolver-raises-propagates
(authorization guard), unknown-phase-empty-dict.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant