Skip to content

fix: increase default workspace inactivity timeout to one hour - #2255

Merged
tolusha merged 1 commit into
eclipse-che:mainfrom
rohankanojia-forks:pr/bump-default-idling-1h
Nov 5, 2026
Merged

tolusha merged 1 commit into
eclipse-che:mainfrom
rohankanojia-forks:pr/bump-default-idling-1h

Conversation

@rohanKanojia

@rohanKanojia rohanKanojia commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Increases the default workspace inactivity timeout from 30 minutes (1800 seconds) to 1 hour (3600 seconds). Updates the v1 and v2 API defaults and the generated CRD and deployment manifests. Explicitly configured timeouts are unaffected.

Note: This changes the default for new installations only. Existing CheCluster CRs keep their stored value, including the previous default of 1800, because the API server saved that value when the CR was created. To use the new timeout on an existing cluster, set spec.devEnvironments.secondsOfInactivityBeforeIdling to 3600.

Assisted-by: Codex

Screenshot/screencast of this PR

Not applicable; this changes a configuration default.

What issues does this PR fix or reference?

How to test this PR?

  1. Deploy the operator:

OpenShift

build/scripts/oc-tests/oc-test.sh --install-from pr 2255

on Minikube

./build/scripts/minikube-tests/test-operator-from-sources.sh
  1. Create a CheCluster without setting spec.devEnvironments.secondsOfInactivityBeforeIdling.
  2. Confirm the stored value is 3600 and a workspace remains active beyond 30 minutes of inactivity.
oc get crd checlusters.org.eclipse.che -o yaml | grep -A 1 'secondsOfInactivityBeforeIdling:'

Common Test Scenarios

  • Deploy Eclipse Che
  • Start an empty workspace
  • Open terminal and build/run an image
  • Stop a workspace
  • Check operator logs for reconciliation errors or infinite reconciliation loops

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Summary by CodeRabbit

  • Configuration Updates
    • The default workspace inactivity timeout is now 60 minutes, up from 30 minutes, before an idle workspace is stopped.
    • This default applies to both supported configuration versions and is consistent across Kubernetes, OpenShift, and Helm deployments.
    • Workspaces with an explicitly configured inactivity timeout are unaffected. Other timeout settings remain unchanged.

@openshift-ci

openshift-ci Bot commented Nov 4, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The default workspace inactivity timeout changes from 1,800 to 3,600 seconds in v1 and v2 API declarations and in the corresponding CRD manifests. Explicitly configured values and other timeout fields remain unchanged.

Changes: Workspace inactivity timeout

Layer / File(s) Summary
Update API type defaults
api/v1/checluster_types.go, api/v2/checluster_types.go
The v1 default marker and both v2 default declarations change from 1,800 to 3,600 seconds.
Update published CRD defaults
config/crd/bases/org.eclipse.che_checlusters.yaml, bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml, deploy/deployment/{kubernetes,openshift}/..., helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml
The v1 and v2 inactivity timeout defaults change from 1,800 to 3,600 seconds across the base CRD and published deployment manifests.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: Minimal · up to c41cc

The default inactivity timeout increases to one hour while explicit settings remain unchanged. No actionable merge-blocking defect is identified; normal validation remains necessary, and image builds need registry credentials.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely states the main change: increasing the default workspace inactivity timeout to one hour.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (7 skipped: 7 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9f3bd0f6-2008-44cb-b21f-f275a04cab90
Commits

Reviewing files that changed from the base of the PR and between 302fe4c and c41cc96.

Files selected for processing: 9
  • api/v1/checluster_types.go
  • api/v2/checluster_types.go
  • bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml
  • config/crd/bases/org.eclipse.che_checlusters.yaml
  • deploy/deployment/kubernetes/combined.yaml
  • deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml
  • deploy/deployment/openshift/combined.yaml
  • deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml
  • helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@openshift-ci

openshift-ci Bot commented Nov 4, 2026

Copy link
Copy Markdown

@rohanKanojia: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v22-upgrade-stable-to-next c41cc96 link true /test v22-upgrade-stable-to-next
ci/prow/v22-devworkspace-happy-path c41cc96 link true /test v22-devworkspace-happy-path

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci

openshift-ci Bot commented Nov 5, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ibuziuk, rohanKanojia, tolusha

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tolusha
tolusha merged commit 1182191 into eclipse-che:main Nov 5, 2026
17 of 21 checks passed
@rohanKanojia
rohanKanojia deleted the pr/bump-default-idling-1h branch November 5, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants