-
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
Add possibility to disable DockerInstanceStopDetector #6415
Conversation
It is needed for OpenShift infra where getting events is not supported due to security limits. To disable containers stop detector variable CHE_DOCKER_ENABLE__CONTAINER__STOP__DETECTOR=false should be defined. Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
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.
OK for me
@@ -89,7 +97,9 @@ public DockerInstanceStopDetector( | |||
* @param workspaceId id of a workspace that owns machine | |||
*/ | |||
public void startDetection(String containerId, String machineId, String workspaceId) { | |||
instances.put(containerId, Pair.of(machineId, workspaceId)); | |||
if (enableDetector) { |
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'd name this variable as isEnabled
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.
ok
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3789/ |
there is a missing test |
yes |
@garagatyi I don't see the unit test ? |
also I don't see any labels set and milestone |
I didn't add tests. |
labels and milestone must be defined when merging a PR |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3801/ |
What does this PR do?
It is needed for OpenShift infra where getting events
is not supported due to security limits.
To disable containers stop detector variable
CHE_DOCKER_ENABLE__CONTAINER__STOP__DETECTOR=false should be
defined.
What issues does this PR fix or reference?
Changelog
Add possibility to disable DockerInstanceStopDetector
Release Notes
Docs PR