Skip to content

fix: revert breaking constructor change in InformerConfiguration#3361

Merged
csviri merged 1 commit into
operator-framework:mainfrom
xstefank:revert-breaking-api
May 18, 2026
Merged

fix: revert breaking constructor change in InformerConfiguration#3361
csviri merged 1 commit into
operator-framework:mainfrom
xstefank:revert-breaking-api

Conversation

@xstefank
Copy link
Copy Markdown
Collaborator

Signed-off-by: xstefank <xstefank122@gmail.com>
Copilot AI review requested due to automatic review settings May 18, 2026 12:12
@openshift-ci openshift-ci Bot requested review from csviri and metacosm May 18, 2026 12:12
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 restores a previously removed constructor parameter on InformerConfiguration to undo a breaking API/signature change and updates the copy-builder path accordingly.

Changes:

  • Reintroduces the ghostResourceCacheCheckInterval parameter in the protected InformerConfiguration constructor (marked inline as slated for removal).
  • Updates builder(InformerConfiguration<R> original) to pass a value (null) for the reintroduced parameter.

Comment on lines 71 to 75
FieldSelector fieldSelector,
Boolean comparableResourceVersions) {
Boolean comparableResourceVersions,
// TODO for removal in major release
Duration ghostResourceCacheCheckInterval) {
this(resourceClass);
Comment on lines 120 to +124
original.itemStore,
original.informerListLimit,
original.fieldSelector,
original.comparableResourceVersions)
original.comparableResourceVersions,
null)
@csviri
Copy link
Copy Markdown
Collaborator

csviri commented May 18, 2026

Do we really need this, also on protected constructor?
what is the main reason behind this?

@xstefank
Copy link
Copy Markdown
Collaborator Author

It breaks QOSDK. And it is a public API. Users can also extend it and call the constructor. Not possible to do this in micro release.

@csviri csviri merged commit 8d308d2 into operator-framework:main May 18, 2026
27 checks passed
@xstefank xstefank deleted the revert-breaking-api branch May 18, 2026 12:44
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