Skip to content

feat: external resource with generated id support #1527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 6, 2022

No description provided.

@csviri csviri self-assigned this Oct 6, 2022
@csviri csviri force-pushed the dependent-resource-with-persistent-state branch from 302b099 to ec49d0f Compare October 7, 2022 12:20
client.configMaps().resource(configMap).create();

var primaryID = ResourceID.fromResource(resource);
configMapEventSource.handleRecentResourceCreate(primaryID, configMap);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method shouldn't be called directly, imo. It shouldn't even be part of the public interface.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In this case it is needed, since we want to be strongly consistent regarding the event source.
(For long term we might want to implement these features directly to the client, similarly as in go)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure, but that's not up to the user to ensure that consistency. If the user has to enforce that, then we need to redesign things because the user shouldn't even be aware of that part as it's internal to how the SDK works.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Dependent resources will hide this, but some might do it on lower level. The thing is that without that it just don't work, (In all cases). We need probably do some work on these levels in the future. But this is how it is now, hiding that layer would won't solve the problem. And dependent resources using that, as other abstractions might use that user implement itself, so definitelly would not hide it.

@csviri csviri force-pushed the dependent-resource-with-persistent-state branch from 862b80b to ddf29e9 Compare October 12, 2022 17:11
@csviri csviri marked this pull request as ready for review October 12, 2022 17:14
@csviri csviri requested a review from metacosm October 12, 2022 17:14
@csviri csviri changed the title [wip] feat: external resource with generated id support feat: external resource with generated id support Oct 12, 2022
reconciler for IT

fixes

IT progress

wp

wip

wip

integration test

javadoc
@csviri csviri force-pushed the dependent-resource-with-persistent-state branch from ddf29e9 to 7ce2800 Compare October 12, 2022 17:44
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 23 Code Smells

25.9% 25.9% Coverage
0.0% 0.0% Duplication

@csviri csviri merged commit bbf4d80 into next Oct 17, 2022
@csviri csviri deleted the dependent-resource-with-persistent-state branch October 17, 2022 16:55
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.

2 participants