HYPERFLEET-769 - fix: align broker Helm values with adapter chart snake_case convention#50
HYPERFLEET-769 - fix: align broker Helm values with adapter chart snake_case convention#50
Conversation
The hyperfleet-adapter chart (HYPERFLEET-551) renamed all broker config fields from camelCase to snake_case (e.g. projectId → project_id). The E2E deploy scripts and adapter values.yaml files still used the old camelCase keys, causing Helm to pass empty values and the adapter deployment to crash on startup.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughThis pull request renames Google Pub/Sub broker configuration keys from camelCase to snake_case across deployment and test data: projectId → project_id, subscriptionId → subscription_id, deadLetterTopic → dead_letter_topic, createTopicIfMissing → create_topic_if_missing, and createSubscriptionIfMissing → create_subscription_if_missing. Changes affect one shell script (deploy-scripts/lib/adapter.sh) and multiple YAML values files under testdata/adapter-configs. No control flow, command structure, parameter values, or exported/public entities were modified. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
Replace hardcoded `ci/hyperfleet-adapter:latest` with `${ADAPTER_IMAGE_REPO}:${ADAPTER_IMAGE_TAG}`
in cl-invalid-resource and cl-precondition-error values.yaml to match the pattern used by other
adapter configs and allow testing with custom image builds.
Replace hardcoded `ci/hyperfleet-adapter:latest` with `${ADAPTER_IMAGE_REPO}:${ADAPTER_IMAGE_TAG}`
to match the pattern used by other adapter configs. Keep broker `CHANGE_ME` placeholders as maestro
transport requires specific configuration.
603460d to
e2bdaa3
Compare
Summary
deploy-scripts/lib/adapter.sh--setflags:projectId→project_id,subscriptionId→subscription_id,deadLetterTopic→dead_letter_topic,createTopicIfMissing→create_topic_if_missing,createSubscriptionIfMissing→create_subscription_if_missingtestdata/adapter-configs/:cl-invalid-resource,cl-precondition-error: replace hardcodedci/hyperfleet-adapter:latestwith${ADAPTER_IMAGE_REPO}:${ADAPTER_IMAGE_TAG}cl-maestro: replaceCHANGE_MEplaceholders and hardcoded image with env var referencesContext
The hyperfleet-adapter chart (HYPERFLEET-551) renamed all config fields from camelCase to snake_case. The E2E repo was not updated, causing Helm to pass empty values to the broker ConfigMap template, which expects snake_case keys (e.g.,
.Values.broker.googlepubsub.project_id). This resulted in adapter pods crashing on startup.Test plan
cl-precondition-errortest — Applied=False, Available=False, Health=Falsecl-invalid-resourcetest — adapter failure detection and reporting validatedSummary by CodeRabbit