Skip to content

Conversation

@csviri
Copy link
Collaborator

@csviri csviri commented Oct 23, 2025

TODO:

  • base configuration class for external DR?
  • bulk DRs?

@openshift-ci openshift-ci bot requested review from metacosm and xstefank October 23, 2025 14:21
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 23, 2025
@csviri csviri force-pushed the resource-id-mapper branch from f45940d to 658563b Compare October 23, 2025 14:22
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 23, 2025
@csviri csviri changed the title Resource id mapper @csviri improve: ResourceIDMapper and ResourceIDProvider for external resources Oct 23, 2025
@csviri csviri changed the title @csviri improve: ResourceIDMapper and ResourceIDProvider for external resources improve: ResourceIDMapper and ResourceIDProvider for external resources Oct 23, 2025
Will check if this could be elegantly extended to bulk resources

Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri force-pushed the resource-id-mapper branch from 63cfeb0 to f615a86 Compare October 23, 2025 15:33
@csviri csviri marked this pull request as draft October 24, 2025 08:51
@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 Oct 24, 2025
@csviri
Copy link
Collaborator Author

csviri commented Oct 24, 2025

created a variant that covers also bulk dependents, that looks very reasonable:
#3020

I would prefer to go with that version.

@csviri csviri closed this Oct 24, 2025
@metacosm
Copy link
Collaborator

Should that branch be deleted then?

@csviri csviri deleted the resource-id-mapper branch October 24, 2025 12:52
Copy link
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.

Discard this, didn't see that there is a follow up new version.

* Provides the identifier for an object that represents an external resource. This ID is used to
* select target resource for a dependent resource from the resources returned by `{@link
* io.javaoperatorsdk.operator.api.reconciler.Context#getSecondaryResources(Class)}`.
* Provides the identifier for an object that represents resource. This ID is used to select target
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Provides the identifier for an object that represents resource. This ID is used to select target
* Provides the identifier for an object that represents a resource. This ID is used to select the target

* io.javaoperatorsdk.operator.api.reconciler.Context#getSecondaryResources(Class)}`.
* Provides the identifier for an object that represents resource. This ID is used to select target
* external resource for a dependent resource from the resources returned by `{@link
* io.javaoperatorsdk.operator.api.reconciler.Context#getSecondaryResources(Class)}`. But also for
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* io.javaoperatorsdk.operator.api.reconciler.Context#getSecondaryResources(Class)}`. But also for
* io.javaoperatorsdk.operator.api.reconciler.Context#getSecondaryResources(Class)}`. Is is also used as

* Provides the identifier for an object that represents resource. This ID is used to select target
* external resource for a dependent resource from the resources returned by `{@link
* io.javaoperatorsdk.operator.api.reconciler.Context#getSecondaryResources(Class)}`. But also for
* {@link ResourceIDMapper} for event sources in external resources
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* {@link ResourceIDMapper} for event sources in external resources
* {@link ResourceIDMapper} for event sources in external resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improved default setup for External Dependent Resource for selecting and/or matching resources

4 participants