Skip to content

chore: Set controller UsePriorityQueue to false#2129

Merged
tolusha merged 1 commit into
mainfrom
set-usePriorityQueue-false-2
May 29, 2026
Merged

chore: Set controller UsePriorityQueue to false#2129
tolusha merged 1 commit into
mainfrom
set-usePriorityQueue-false-2

Conversation

@tolusha
Copy link
Copy Markdown
Contributor

@tolusha tolusha commented May 28, 2026

What does this PR do?

Set controller UsePriorityQueue to false.
See: devfile/devworkspace-operator#1635

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

N/A

How to test this PR?

N/A

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.

The UsePriorityQueue field defaults to true since controller-runtime
v0.23.0. This reverts the value to match pre-v0.23.0 functionality.

See: devfile/devworkspace-operator#1635

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 28, 2026

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

@tolusha tolusha marked this pull request as ready for review May 28, 2026 15:19
@tolusha tolusha requested a review from Copilot May 28, 2026 15:20
@tolusha tolusha requested a review from rohanKanojia May 28, 2026 15:20
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 28, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR disables controller-runtime’s priority queue for the Che operator controllers, aligning controller queue behavior with the referenced devworkspace-operator change.

Changes:

  • Sets UsePriorityQueue to false in all controller TypedOptions.
  • Keeps existing SkipNameValidation configuration unchanged.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
controllers/workspaceconfig/workspaces_config_controller.go Disables priority queue for the workspaces config controller.
controllers/usernamespace/usernamespace_controller.go Disables priority queue for the user namespace controller.
controllers/che/checluster_controller.go Disables priority queue for the CheCluster controller.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented May 29, 2026

/retest

@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented May 29, 2026

Hi! I'm che-ai-assistant — I help with your pull requests.

Available commands:

  • /che-ai-assistant generate-che-doc — Generate a documentation PR based on this PR's changes
  • /che-ai-assistant ok-pr-review — Run a comprehensive PR review (summary, code review, deep review, impact analysis)
  • /che-ai-assistant help — Show this help message

@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented May 29, 2026

/che-ai-assistant ok-pr-review

Review is complete. Please check the review comments below.

Copy link
Copy Markdown
Contributor Author

@tolusha tolusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comprehensive Review Completed

This PR has been reviewed across three dimensions: standard code review, deep design analysis, and system-level impact assessment.

Summary: Well-executed change, ready for review

What was reviewed:

  • ✅ Standard code review
  • ✅ Deep design and quality analysis
  • ✅ System-level impact review

Findings

No critical issues - The change is well-scoped and safe.

Positive observations:

  • Consistent application across all three affected controllers
  • Follows existing code patterns (pointer.Bool())
  • Minimal, focused diff - easy to review
  • Correctly scoped (excludes devworkspace and namespacecache which don't use SetupWithManager with TypedOptions)
  • Operationally safe - only affects reconciliation queue ordering, no impact on observability, security, or performance

Optional Suggestion for Future Maintainability

Consider adding a brief inline comment at one of the UsePriorityQueue sites explaining the rationale. This would help future maintainers understand why this setting overrides the controller-runtime v0.23+ default.

For example, in controllers/che/checluster_controller.go:

return bld.WithOptions(
	controller.TypedOptions[reconcile.Request]{
		SkipNameValidation: pointer.Bool(true),
		// Disabled to avoid reconciliation issues - see devfile/devworkspace-operator#1635
		UsePriorityQueue:   pointer.Bool(false),
	}).Complete(r)

This is a suggestion for documentation, not a blocking concern.

Technical Analysis

Design Quality: The change follows the existing abstraction pattern. Each controller owns its setup configuration, which is appropriate for independent controller configuration.

Reconciliation Impact: Disabling priority queue reverts from priority-based ordering to FIFO. For che-operator (typically managing a single CheCluster instance), the practical difference is negligible.

Operational Safety: No impact on observability, failure handling, resource lifecycle, network behavior, or security. The change is a simple configuration toggle consumed at manager startup.


🤖 Comprehensive review by Claude Code using ok-pr-review

@tolusha
Copy link
Copy Markdown
Contributor Author

tolusha commented May 29, 2026

/retest

@tolusha tolusha merged commit e5d401f into main May 29, 2026
36 of 38 checks passed
@tolusha tolusha deleted the set-usePriorityQueue-false-2 branch May 29, 2026 11:06
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