-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-253: Refactor Che docker client #952
Conversation
private String repository; | ||
/** authentication configuration for private registries. Can be null */ | ||
private AuthConfigs authConfigs; | ||
/** */ |
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.
take a look
* | ||
* @author Mykola Morhun | ||
*/ | ||
public class GetSystemInfoParams { |
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.
Do we need this new unused empty class?
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.
Yes
cddca49
to
1a69c1f
Compare
@garagatyi check please |
@@ -106,12 +107,12 @@ public void setNetworkSettings(NetworkSettings networkSettings) { | |||
this.networkSettings = networkSettings; | |||
} | |||
|
|||
public String getResolvConfPath() { | |||
return resolvConfPath; | |||
public String getResolveConfPath() { |
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.
Why you've changed this?
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 fixed typo
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.
It is not a typo. We used the same wording Docker use itself. You can check it by inspecting docker container.
@garagatyi I corrected the code according to your comments |
|
||
/** | ||
* @param container | ||
* id of container |
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.
are you sure that only id is valid value?
+1 for
|
+0 |
+1 for |
@evoevodin @skabashnyuk check please |
final DockerResponse response = connection.request(); | ||
final int status = response.getStatus(); | ||
if (!(NO_CONTENT.getStatusCode() == status || NOT_MODIFIED.getStatusCode() == status)) { | ||
if (NO_CONTENT.getStatusCode() != status && NOT_MODIFIED.getStatusCode() != status) { |
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 that status / 100 != 2
will be better in that case
Code looks really good! |
dca4980
to
1a8971f
Compare
LGTM |
…without breaking code dependent on docker client Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
_2 Upvotes_ Refactor Che docker client to be able to add new parameters without breaking code dependent on docker client