Skip to content

feature: ResourceID from first owner reference - #841

Merged
csviri merged 3 commits into
mainfrom
resourceid-from-owner-reference
Jan 17, 2022
Merged

feature: ResourceID from first owner reference#841
csviri merged 3 commits into
mainfrom
resourceid-from-owner-reference

Conversation

@csviri

@csviri csviri commented Jan 17, 2022

Copy link
Copy Markdown
Collaborator

No description provided.

@csviri csviri self-assigned this Jan 17, 2022
resource.getMetadata().getNamespace());
}

public static Optional<ResourceID> fromFirstOwnerReference(HasMetadata dependentResource) {

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.

It'd be better if you'd use the implementation from the dependent resources branch: https://github.com/java-operator-sdk/java-operator-sdk/pull/785/files#diff-5166f926d491fa8bc37664176eb65ecb8dc051b8db0e3d3771fb817a1fbd462dR70-R80 so that merging later will be easier.

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.

good point, changed

@sonarqubecloud

Copy link
Copy Markdown
@csviri
csviri requested a review from metacosm January 17, 2022 16:41
@csviri
csviri merged commit d3863e1 into main Jan 17, 2022
@csviri
csviri deleted the resourceid-from-owner-reference branch January 17, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants