Repository navigation
🌱 use "preflight" in ClusterObjectSet rejection messages; add static validation e2e - #3026
Merged
openshift-merge-bot[bot] merged 2 commits intoOct 19, 2026
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
perdasilva
force-pushed
the
cos-static-validation-e2e
branch
2 times, most recently
from
October 19, 2026 09:47
cd17098 to
09abda9
Compare
Contributor
Author
|
/hold until group PR merges |
Use "preflight" instead of "pre-apply" in the PreconditionsNotMet Ready messages for the ClusterObjectSet revision- and phase-level checks that run before objects are applied. "Preflight" is the term users already recognize for checks that run before an operation, and it matches the vocabulary already used in the controller comments, the Ready condition documentation, and the concepts docs. The condition reason (PreconditionsNotMet) is unchanged. Also align the explanatory comments in the ClusterExtension controller that describe this reason. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Per G. da Silva <pegoncal@redhat.com>
Add a cos_static_validation.feature suite covering the revision-level (static, non-dry-run) preflight checks, which surface on the ClusterObjectSet as Ready=False/PreconditionsNotMet: - the same object (GVK + namespace + name) appearing in more than one phase, and - an object manifest that carries its own metadata.ownerReferences. Both assert the controller's "A preflight check rejected the revision: ..." message. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Per G. da Silva <pegoncal@redhat.com>
perdasilva
force-pushed
the
cos-static-validation-e2e
branch
from
October 19, 2026 15:00
09abda9 to
0caedfc
Compare
Contributor
Author
|
/unhold |
Member
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
openshift-merge-bot
Bot
merged commit Oct 19, 2026
01d8b30
into
operator-framework:main
46 of 47 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two related changes for the ClusterObjectSet
PreconditionsNotMetpre-apply checks:1. Reword the condition messages: "pre-apply check" → "preflight check"
The controller's revision- and phase-level pre-apply rejection messages now say "A preflight check rejected the revision/phase: …". "Preflight" is the term users already recognize for checks that run before an operation (kubeadm, Helm, etc.), and it's the vocabulary already used in the controller's own comments, the
Readycondition documentation inclusterobjectset_types.go, and the concepts docs. The condition reason (PreconditionsNotMet) is unchanged — only the human-readable message text.Also aligned the explanatory comments in the ClusterExtension controller that describe this reason.
No CRD/reference-doc regeneration was needed: the
Readycondition docstring anddocs/draft/concepts/clusterobjectsets.mdalready used "preflight".2. Add
cos_static_validation.featureA new e2e suite covering the revision-level (static, non-dry-run) preflight checks, which surface as
Ready=False / PreconditionsNotMet:A preflight check rejected the revision: … duplicate object found in phases: phase-a, phase-bA preflight check rejected the revision: … metadata.ownerReferences: Forbidden: must be empty.Testing
Notes
@BoxcutterRuntime. The feature reuses existing step definitions; no step code changes.cos_preflight.featurePR (🌱 add ClusterObjectSet pre-apply dry-run validation e2e scenarios #3027) asserts the phase-level message and must be updated to the new "preflight" wording and merged after this one.🤖 Generated with Claude Code
Summary by CodeRabbit