Skip to content
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

Refactor StorageConfig so it does not have both imagePath and Uri properties #227

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

lstocchi
Copy link
Contributor

#212 introduced a new property to the StorageConfig struct (URI) and, by doing so, now we have to check if we are dealing with a disk storage or a remote disk device by checking imagePath and Uri fields. An idea that came up in #212 (comment) was to refactor the StorageConfig struct to be extended by a DiskStorageConfig and a NetworkBlockStorageConfig.

This PR refactors the code based on that suggestion.

crc-org#212 introduced a new property to the StorageConfig struct (URI) and, by doing so, now we have to check if we are dealing with a disk storage or a remote disk device by checking imagePath and Uri fields. An idea that came up in crc-org#212 (comment) was to refactor the StorageConfig struct to be extended by a DiskStorageConfig and a NetworkBlockStorageConfig.

This PR refactors the code based on that suggestion.

Signed-off-by: Luca Stocchi <[email protected]>
Copy link

openshift-ci bot commented Nov 25, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@lstocchi lstocchi marked this pull request as ready for review November 25, 2024 15:11
@openshift-ci openshift-ci bot requested review from anjannath and baude November 25, 2024 15:11
@lstocchi lstocchi requested a review from cfergeau November 25, 2024 15:11
@cfergeau
Copy link
Collaborator

cfergeau commented Jan 8, 2025

/lgtm
/approve

Copy link

openshift-ci bot commented Jan 8, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau

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

The pull request process is described here

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

@openshift-ci openshift-ci bot added the approved label Jan 8, 2025
@cfergeau
Copy link
Collaborator

cfergeau commented Jan 9, 2025

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 6871210 into crc-org:main Jan 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants