Skip to content

HYPERFLEET-769 - fix: align broker Helm values with adapter chart snake_case convention#50

Open
rafabene wants to merge 3 commits intomainfrom
fix/adapter-broker-snake-case
Open

HYPERFLEET-769 - fix: align broker Helm values with adapter chart snake_case convention#50
rafabene wants to merge 3 commits intomainfrom
fix/adapter-broker-snake-case

Conversation

@rafabene
Copy link
Contributor

@rafabene rafabene commented Mar 19, 2026

Summary

  • Rename broker googlepubsub Helm value keys from camelCase to snake_case to match the adapter chart convention introduced in HYPERFLEET-551
  • Fix deploy-scripts/lib/adapter.sh --set flags: projectIdproject_id, subscriptionIdsubscription_id, deadLetterTopicdead_letter_topic, createTopicIfMissingcreate_topic_if_missing, createSubscriptionIfMissingcreate_subscription_if_missing
  • Fix all adapter values.yaml files under testdata/adapter-configs/:
    • 7 configs: rename broker keys from camelCase to snake_case
    • cl-invalid-resource, cl-precondition-error: replace hardcoded ci/hyperfleet-adapter:latest with ${ADAPTER_IMAGE_REPO}:${ADAPTER_IMAGE_TAG}
    • cl-maestro: replace CHANGE_ME placeholders and hardcoded image with env var references

Context

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

  • Run E2E deployment with the updated values and verify adapter pods start successfully
  • Verify broker ConfigMap contains correct values (not empty)
  • Run tier1 cl-precondition-error test — Applied=False, Available=False, Health=False
  • Run tier1 cl-invalid-resource test — adapter failure detection and reporting validated
  • Run tier0 cluster and nodepool baseline tests (excluding maestro)

Summary by CodeRabbit

  • Chores
    • Standardized Google Pub/Sub broker configuration field names from camelCase to snake_case across deployment and test configurations.
    • Updated test/deployment configs to use templated variables for image registry/repository and tag instead of fixed placeholders.
    • Improved consistency and flexibility of configuration variable substitution patterns.

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.
@openshift-ci openshift-ci bot requested review from ciaranRoche and jsell-rh March 19, 2026 17:12
@openshift-ci
Copy link

openshift-ci bot commented Mar 19, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yingzhanredhat for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai
Copy link

coderabbitai bot commented Mar 19, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 147e1369-da19-4ce6-bfb8-fbcc2214ec35

📥 Commits

Reviewing files that changed from the base of the PR and between 603460d and e2bdaa3.

📒 Files selected for processing (1)
  • testdata/adapter-configs/cl-maestro/values.yaml
✅ Files skipped from review due to trivial changes (1)
  • testdata/adapter-configs/cl-maestro/values.yaml

Walkthrough

This 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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: renaming broker Helm values from camelCase to snake_case to align with adapter chart convention, which is the primary objective across all modified files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/adapter-broker-snake-case
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@rafabene rafabene changed the title fix: align broker Helm values with adapter chart snake_case convention HYPERFLEET-769 - fix: align broker Helm values with adapter chart snake_case convention Mar 19, 2026
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.
@rafabene rafabene force-pushed the fix/adapter-broker-snake-case branch from 603460d to e2bdaa3 Compare March 20, 2026 01:42
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