-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allows only HTTPS unless 'allowHttp' is true. #437
Conversation
@Nullable Authorization authorization, | ||
String serverUrl, | ||
String imageName, | ||
boolean allowHttp) { |
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 think there's something to readability when using builders or static factories here. Having to look at what a "true/false" parameter means when reading the code is not the most readable experience.
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.
Added static factories.
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.
Sorry, I think I made a mistake here, registry client is internal only to jib-core? It made the code more verbose in ways I didn't realize. It might make sense to leave it how you had before (or use a builder if you want).
Changed to be a |
Redo of #407 and regards fixing #388 .
Next PR is adding the plugin configuration
allowInsecureRegistries
.