Skip to content

feat: field selectors support for InformerEventSource - #2835

Merged
csviri merged 7 commits into
nextfrom
field-selector
Jun 20, 2025
Merged

feat: field selectors support for InformerEventSource#2835
csviri merged 7 commits into
nextfrom
field-selector

Conversation

@csviri

@csviri csviri commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator

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

closes #2813

@openshift-ci
openshift-ci Bot requested review from metacosm and xstefank June 19, 2025 10:13
@csviri
csviri marked this pull request as draft June 19, 2025 10:13
@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 19, 2025
@csviri

csviri commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator Author

closes #2813

@csviri
csviri requested a review from xstefank June 20, 2025 07:19
@csviri
csviri marked this pull request as ready for review June 20, 2025 07:19
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 20, 2025
@csviri
csviri changed the base branch from main to next June 20, 2025 07:19
@csviri

csviri commented Jun 20, 2025

Copy link
Copy Markdown
Collaborator Author

@metacosm @xstefank this is ready now. Targeting next with the features.

csviri added 3 commits June 20, 2025 09:21
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>
informer =
@Informer(
withFields =
@Field(field = "type", value = FieldSelectorTestReconciler.MY_SECRET_TYPE)))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This seems a little strange to me to read. Maybe "name" or "key" so it's not @Field(field = ... but of course this is just recommendation so feel free to discard it.

@csviri csviri Jun 20, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it is a bit smelly.

Alternatively, we could have:

@FieldSelector(field="type", value="value", negated=false)

So there would not be with and without fields in @Informer just a list of @FieldSelector.
We might want to have similar api for java api for informers.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@metacosm what do you think?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

refactored it to a more explicit model, PTAL

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri
csviri requested a review from xstefank June 20, 2025 12:18

@xstefank xstefank left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Way better!

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 2dc9111 into next Jun 20, 2025
@csviri
csviri deleted the field-selector branch June 20, 2025 15:01
csviri added a commit that referenced this pull request Jun 26, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Jul 1, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Aug 1, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Aug 11, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Aug 21, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Sep 2, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Sep 24, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Oct 7, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Oct 14, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Oct 18, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Oct 23, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Nov 20, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added a commit that referenced this pull request Nov 25, 2025
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
dongjoon-hyun added a commit to apache/spark-kubernetes-operator that referenced this pull request Dec 10, 2025
### What changes were proposed in this pull request?

This PR aims to upgrade `operator-sdk` to 5.2.1

### Why are the changes needed?

To bring the latest improvements and bug fixes:
- https://javaoperatorsdk.io/blog/2025/11/25/version-5.2-released/
  - https://github.com/operator-framework/java-operator-sdk/releases/tag/v5.2.1
  - https://github.com/operator-framework/java-operator-sdk/releases/tag/v5.2.0
      - operator-framework/java-operator-sdk#2937
      - operator-framework/java-operator-sdk#2934
      - operator-framework/java-operator-sdk#2917
      - operator-framework/java-operator-sdk#2835

### Does this PR introduce _any_ user-facing change?

No behavior change.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #424 from dongjoon-hyun/SPARK-54671.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants