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

Add azure blob support #1923

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

prestist
Copy link
Collaborator

Separated commits because of the extreme of vendoring.

@prestist
Copy link
Collaborator Author

Still needs to be tested, working through that atm.

@prestist
Copy link
Collaborator Author

prestist commented Jan 25, 2025

I have tested this and it does work! yay;

Alright; outstanding things;

Obviously need to rebase and fix conflicts ✅

Need to add documentation, and I started here on this documentation; was thinking about examples.md but after thinking about it I dont think that makes any sense, there is no sig change and it would work from the point of remote-ign files.

Was thinking about breaking out the parse logic for url into a func just for unit testing but wdyt?

@prestist prestist force-pushed the add-azureblob-support branch from c14396b to c99df9d Compare January 25, 2025 01:40
Copy link
Member

@travier travier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question but looks good. The main thing we'll have to look at is if the licenses of the introduced code are compatible with our own.

return fmt.Errorf("failed to create azblob client: %w", err)
}

// Download the blob with retry logic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, shouldn't the retry happen as part of the wider retry loop in Ignition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes that makes sense; I did not consider that at all. Will drop the retry logic.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you that would be helpful to break this into a separate function and write a unit test. It would also be nice to include other scenarios, like testing the Azure Blob Storage client creation and its errors. But not sure if this is the scope of the URL test file.

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.

3 participants