Skip to content

fix: ClusterDeployedOperatorExtension should alway apply CRDs before test#3312

Merged
csviri merged 5 commits intooperator-framework:mainfrom
csviri:fix-cluster-junit-crd
Apr 24, 2026
Merged

fix: ClusterDeployedOperatorExtension should alway apply CRDs before test#3312
csviri merged 5 commits intooperator-framework:mainfrom
csviri:fix-cluster-junit-crd

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Apr 24, 2026

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

…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
@openshift-ci openshift-ci Bot requested review from metacosm and xstefank April 24, 2026 11:48
Copy link
Copy Markdown
Collaborator

@xstefank xstefank left a comment

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?

Copy link
Copy Markdown
Contributor

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 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
Copy link
Copy Markdown
Collaborator Author

csviri commented Apr 24, 2026

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

It seems to :)

csviri added 4 commits April 24, 2026 13:55
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>
@csviri csviri merged commit 1282707 into operator-framework:main Apr 24, 2026
46 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants