-
Notifications
You must be signed in to change notification settings - Fork 15
MGMT-21215: Allow setting or updating cluster ssh public key #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MGMT-21215: Allow setting or updating cluster ssh public key #47
Conversation
|
@carbonin: This pull request references MGMT-21215 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 bug to target the "4.20.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. |
WalkthroughThis change introduces SSH key management capabilities for clusters. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Server
participant InventoryClient
participant AssistedServiceAPI
User->>Server: create_cluster(name, ..., ssh_public_key)
Server->>InventoryClient: create_cluster(..., ssh_public_key)
InventoryClient->>AssistedServiceAPI: create_cluster API call
Server->>InventoryClient: create_infra_env(..., ssh_authorized_key=ssh_public_key)
InventoryClient->>AssistedServiceAPI: create_infra_env API call
Server-->>User: Cluster created
User->>Server: set_cluster_ssh_key(cluster_id, ssh_public_key)
Server->>InventoryClient: update_cluster(cluster_id, ssh_public_key)
InventoryClient->>AssistedServiceAPI: update_cluster API call
Server->>InventoryClient: list_infra_envs(cluster_id)
InventoryClient->>AssistedServiceAPI: list_infra_envs API call
loop For each InfraEnv
Server->>InventoryClient: update_infra_env(infra_env_id, ssh_authorized_key)
InventoryClient->>AssistedServiceAPI: update_infra_env API call
end
Server-->>User: SSH key updated
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code Graph Analysis (3)service_client/assisted_service_api.py (1)
server.py (3)
tests/test_assisted_service_api.py (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (14)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carbonin 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 |
|
@carbonin: This pull request references MGMT-21215 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 bug to target the "4.20.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. |
|
/lgtm |
6d3c807
into
openshift-assisted:master
This PR adds an optional parameter to the cluster create tool for the ssh public key which adds it to both the created cluster and infraenv. Additionally a new tool is added to update the ssh public key for existing clusters. The update tool also updates all associated infraenvs.
Resolves https://issues.redhat.com/browse/MGMT-21215
Summary by CodeRabbit
New Features
Documentation
Tests