-
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
Openshift connector improvements #5052
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
f1e6664
CHE-4141 - Use Persistent Volumes Claims when creating workspaces
snjeza bd110c0
Implement getContainerLogs method in OpenShiftConnector
snjeza 8c5bcf8
Implement createExec() and startExec() in OpenShiftConnector
amisevsk bb7cdf3
Update Dockerfile to avoid permissions issues
l0rd 787c854
Che server and workpaces exposed on the same single TCP port (#4351)
l0rd cf51b1c
Add implementation of getEvents() to avoid busy wait
amisevsk 77329e3
Disabling usage of user account service in openshift-connector
sunix fba68ea
Update Docker Compose tests to fix test failure
amisevsk d9ec4e8
Find an alternative to subPath in volumeMount
snjeza 1f8feec
Setting rwx permissions for all on /data/ in case it's not mounted
l0rd 4b0aa10
Fix dockerImageConfig is null (since v1.5 of OpenShift API)
l0rd 1e52375
Add support for resource limits when running on Openshift
amisevsk 4276e98
Add Nullable annotation to che.docker.ip.external
amisevsk fe8c3fb
Adding property to set requests for RAM
l0rd 1c28f25
CHE-158 Adding TLS support for Workspace routes
ibuziuk fbaa6b9
CHE-158 Using '-' instead of '.' for generating OpenShift route Urls
ibuziuk 3760901
Fixing tests after changing Url generation logic
ibuziuk ef3fae6
Redirect insecure HTTP requests to TLS endpoint
l0rd edd1318
CHE-180: Creating and closing OpenShiftClient in every method of Open…
ibuziuk 45f3648
Update route naming to make it work on OSO
l0rd 4acf79c
Delete ReplicaSets explicitly when shutting down a workspace
amisevsk 2510ba8
Rework PVC management on OpenShift
l0rd 84fe5ea
Fix OpenShiftConnectorTest
l0rd 6b78b07
Fix route server names if unknown should start with server-.
sunix 44818af
Add property to control manual workspace dir creation in OpenShift
amisevsk bd1cbbe
CHE-102 - Idle detection of che-server and workspaces
snjeza 521ade6
Recent changes required access to `/` which is impossible under OS
davidfestal aee7227
Add and modify tests for OpenShift helper classes
amisevsk 89641ad
adapt che-server entrypoint.sh to environments without write permissi…
46b2f8c
CHE-280: Adding container's state info to the 'inspectContainer' API
ibuziuk a822958
Factorize code of `ServerEvaluationStrategy` classes, to use the Cust…
davidfestal 15c1b6c
Multi-container workspace Support (#5110)
davidfestal c533f7a
Fix failing Traeffik tests...
davidfestal 715e5d5
Fix tests in the LocalDockerEvaluationStrategy...
davidfestal 0028e4b
Replace OSIO-specific `single-port` strategy by `docker-local-custom`
davidfestal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
core/che-core-api-core/src/main/java/org/eclipse/che/api/core/event/ServerIdleEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2017 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.api.core.event; | ||
/** | ||
* Event informing about idling the che server. | ||
*/ | ||
public class ServerIdleEvent { | ||
private long timeout; | ||
|
||
/** | ||
* Implements the handler to handle idling. | ||
*/ | ||
public ServerIdleEvent(long timeout) { | ||
super(); | ||
this.timeout = timeout; | ||
} | ||
|
||
|
||
public long getTimeout() { | ||
return timeout; | ||
} | ||
|
||
public void setTimeout(long timeout) { | ||
this.timeout = timeout; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what for?
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.
Since OpenShiftConnector is in a different package, we cannot implement
startExec()
orcreateExec()
without this class being public -- there seems to be no factory method.