-
Notifications
You must be signed in to change notification settings - Fork 248
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
base: main
Are you sure you want to change the base?
Add azure blob support #1923
Conversation
Still needs to be tested, working through that atm. |
0b8dda6
to
86ec426
Compare
c94adc9
to
c14396b
Compare
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? |
use azure sdk to authorize, initiate and fetch ignition config file from azure blob storage. fixes: https://issues.redhat.com/browse/COS-2859
c14396b
to
c99df9d
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Separated commits because of the extreme of vendoring.