-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: Add option for using monolithic push #177
Conversation
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.
Thanks for the change, I left a minor comment
src/client.rs
Outdated
if self.config.use_monolithic_push { | ||
self.push_blob_monolithically(image_ref, data, digest).await | ||
} else { |
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.
Just a matter of personal taste, I would rewrite it get rid of the extra indentation caused by the else
statement:
if self.config.use_monolithic_push {
return self.push_blob_monolithically(image_ref, data, digest).await;
}
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.
Great suggestion, I've adjusted the code accordingly 👍
Signed-off-by: Joonas Bergius <[email protected]>
145945d
to
30c0b71
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.
Good to go whenever you're ok with it @flavio
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.
thanks for having done the requested change
Following up on #175 and #176, this rounds out the remaining set of functionality that's needed to use
rust-oci-client
for pushing to GCP Artifact Registry similarly to howoras-go
can be used for this.This seemed like an option that should be available for configuring the client in case you're working with a registry that's not fully spec compliant.