Repository navigation
OSAC-1550: rename sshKey to sshPublicKey in AAP template parameters - #744
Conversation
|
@mennyaboush: This pull request references OSAC-1550 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe SSH template parameter key changes from ChangesSSH Template Parameter Key Rename
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
/hold
let's unhold once osac-project/osac-aap#368 is ready
bae1a4b to
1a3bf03
Compare
|
/retest |
1 similar comment
|
/retest |
|
CI failures are unrelated to this PR:
|
Align the AAP template parameter key with the proto field rename from ssh_key to ssh_public_key completed in PR osac-project#738. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: MENNY ABOUSH <maboush@maboush-thinkpadt14gen5.raanaii.csb>
1a3bf03 to
6a8267d
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@internal/controllers/baremetalinstance/baremetalinstance_reconciler_function_test.go`:
- Around line 224-225: The BareMetalInstance reconciler test currently only
verifies the presence of sshPublicKey, so it would still pass if the legacy
sshKey parameter were emitted alongside it. Update the relevant assertions in
baremetalinstance_reconciler_function_test to explicitly check that params does
not contain sshKey in both scenarios, using the same params map setup around the
baremetalinstance reconciler function expectations.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: osac-project/coderabbit/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 21af8e70-3838-4f4f-b8d2-dc03ed0391c7
📒 Files selected for processing (2)
internal/controllers/baremetalinstance/baremetalinstance_reconciler_function.gointernal/controllers/baremetalinstance/baremetalinstance_reconciler_function_test.go
|
💀 CI Triage: Root cause: The main branch was broken due to a database migration number collision (migration 60) between PR #706 and PR #740, causing the fulfillment-grpc-server to crash at startup. Explanation: The boot step failed during the refresh phase because the Evidence:
Suggestion: The issue has already been fixed on the main branch by PR #761. Rebase the PR on the latest main branch and retest. Prow job | Build For deeper investigation, use the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adriengentil, mennyaboush The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
💀 CI Triage: Root cause: Helm upgrade fails because changing OSAC_AAP_TOKEN from a literal value to valueFrom causes a strategic merge patch conflict with the existing deployment in the snapshot. Explanation: The main branch is broken. PR #328 in osac-installer and PR #316 in osac-operator changed the Evidence: Suggestion: Fix the Helm chart in osac-operator to explicitly set Prow job | Build For deeper investigation, use the |
|
/retest |
Summary
sshKeytosshPublicKeyin the BareMetalInstance reconcilerFollows up on the review comment from PR #738: #738 (comment)
Test plan
ginkgo run internal/controllers/baremetalinstance— 36/36 tests passSummary by CodeRabbit
Release Notes
Bug Fixes
sshPublicKeyinstead ofsshKey, ensuring public keys are passed under the expected parameter key.Tests
sshPublicKeyis used and to verify related template parameter behavior (including user data presence/absence).