◐ Shell
clean mode source ↗

fix: ClusterDeployedOperatorExtension should alway apply CRDs before test by csviri · Pull Request #3312 · operator-framework/java-operator-sdk

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

csviri

merged 5 commits into

Apr 24, 2026

Conversation

…test

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>

Copilot AI review requested due to automatic review settings

April 24, 2026 11:48

xstefank

Choose a reason for hiding this comment

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

so it was relying on the LocallyRun case to deploy CRDs?

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 adjusts the JUnit ClusterDeployedOperatorExtension lifecycle to apply CRDs before running tests, by moving CRD application into the beforeAll phase.

Changes:

  • Introduces a beforeAllImpl(...) override intended to apply CRDs before executing superclass beforeAll logic.
  • Renames/extracts the prior before(...) logic into a new applyCrds(...) method.

@csviri

so it was relying on the LocallyRun case to deploy CRDs?

It seems to :)

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>

3 participants

@csviri @xstefank