-
Notifications
You must be signed in to change notification settings - Fork 88
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: implement secondsOfInactivityBeforeIdling and secondsOfRunBefor… #1443
Conversation
@l0rd |
@dkwon17 [1] https://github.com/eclipse-che/che-operator/blob/3830ac4e28983dbe928d0777f63c87bed43feb4b/api/v1/checluster_types.go |
@tolusha yes, having the fields in the |
…eIdling CR config Signed-off-by: David Kwon <dakwon@redhat.com>
Signed-off-by: David Kwon <dakwon@redhat.com>
@dkwon17 900 seconds = 15 minutes and that's too short for the default (15 min is ok for Developer Sandbox because it's a free service and we want to aggressively shut down workspaces if they are not used). |
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
This reverts commit e9ff5df.
Signed-off-by: David Kwon <dakwon@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@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.
Let's wait for PR checks
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dkwon17, tolusha The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@dkwon17 |
Thank you everyone, I will squash and merge |
@dkwon17: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
…eIdling CR config
Signed-off-by: David Kwon dakwon@redhat.com
What does this PR do?
Part of eclipse-che/che#21390.
This PR adds
spec.devEnvironments.secondsOfInactivityBeforeIdling
andspec.devEnvironments.secondsOfRunBeforeIdling
config in the CheCluster CR:This PR reads the above config to create a configmap named
che-idle-settings
when a user namespace is reconciled. The configmap is created so that the data can be mounted to the devworkspace containers. This PR for che-machine-exec: eclipse-che/che-machine-exec#208 reads these environment variables. Here is an example of the generated config map:What issues does this PR fix or reference?
Part of eclipse-che/che#21390.
How to test this PR?
To test on an OpenShift cluster:
with this che-operator image:
quay.io/dkwon17/che-operator:idle-cr
Create a CheCluster CR with
spec.devEnvironments.secondsOfInactivityBeforeIdling
set to "300" andspec.devEnvironments.secondsOfRunBeforeIdling
set to "360".Open the dashboard to provision a user namespace.
In the user namespace verify that the
che-idle-settings
configmap in the user namespace is created, with the following data:spec.devEnvironments.secondsOfInactivityBeforeIdling
andspec.devEnvironments.secondsOfRunBeforeIdling
properties in the CheCluster CR to different values and verify that the changes exist in theche-idle-settings
configmap.PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.