OSAC-1550: rename ssh_key to ssh_public_key in BareMetalInstance API - #738
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. |
|
Warning Review limit reached
More reviews will be available in 24 minutes and 42 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository: osac-project/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (7)
WalkthroughRenames the Changesssh_key → ssh_public_key rename across BareMetalInstanceSpec
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 |
Rename the spec.ssh_key field to spec.ssh_public_key in the BareMetalInstance proto definitions (public and private), and update all server validation, immutability checks, controller references, CLI, and tests to match. This aligns BareMetalInstance with the naming convention used by Clusters and ComputeInstance. The proto field number (= 2) is unchanged, so this is wire-compatible for gRPC clients. The JSON field name changes from sshKey to sshPublicKey. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: MENNY ABOUSH <maboush@maboush-thinkpadt14gen5.raanaii.csb>
93144f3 to
ce846c9
Compare
adriengentil
left a comment
There was a problem hiding this comment.
Can you also update the EP? https://github.com/osac-project/enhancement-proposals/blob/main/enhancements/baremetal-instance-api/README.md. Thanks!
|
[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 |
1b30479
into
osac-project:main
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>
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>
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>
Summary
spec.ssh_keytospec.ssh_public_keyin BareMetalInstance proto definitions (public and private) to align with naming convention used by Clusters and ComputeInstance= 2) is unchanged — wire-compatible for gRPC clientsReviewer feedback: https://github.com/osac-project/enhancement-proposals/pull/57/changes#r3418648740
Changes
proto/public/.../baremetal_instance_type.protossh_key→ssh_public_keyproto/private/.../baremetal_instance_type.protossh_key→ssh_public_keyinternal/api/...buf generateinternal/servers/private_baremetal_instances_server.gointernal/servers/private_baremetal_instances_server_test.gointernal/controllers/baremetalinstance/baremetalinstance_reconciler_function.goHasSshKey()→HasSshPublicKey(),GetSshKey()→GetSshPublicKey()internal/controllers/baremetalinstance/baremetalinstance_reconciler_function_test.gointernal/cmd/cli/create/baremetalinstance/create_bare_metal_instance_cmd.gospec.SshKey→spec.SshPublicKeyNotes
params["sshKey"]) is intentionally kept unchanged — it is an internal parameter passed to Ansible playbooks, not a proto field namessh_keyfield is NOT renamed in this PR — it is a separate concernTest plan
buf lintpassesssh_keyreferences in changed BareMetalInstance filesAssisted-by: Claude Code noreply@anthropic.com
Summary by CodeRabbit
ssh_keytossh_public_keyacross the API, including CLI input mapping, server validation, and immutability enforcement after creation.--ssh-keyvalue is now stored inssh_public_key, and update requests will reject changes tossh_public_key.ssh_public_key, including validation and PATCH immutability expectations.