Skip to content
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

Expose a Compute function for Config Connector status #3466

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

mortent
Copy link
Contributor

@mortent mortent commented Aug 16, 2022

This exposes a function from the configconnector package that allows for computing the reconciliation status for a passed in Config Connector resource. This just restructures the existing code so that it is possible to use the basic code without requiring the full functionality of the StatusReader implementations.

The immediate use-case for this is to provide a way to handle status for Config Connector resources in the ResourceGroup controller: https://github.com/GoogleContainerTools/kpt-resource-group

Copy link
Contributor

@justinsb justinsb left a comment

Choose a reason for hiding this comment

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

lgtm

@justinsb
Copy link
Contributor

Looks good. If we think there might be more of these, we could consider defining + implementing an interface (for use with the unstructured form). But not a blocker.

@mortent
Copy link
Contributor Author

mortent commented Aug 16, 2022

@justinsb Agree that there should be a specific interface for this. Just needed to unblock another effort so didn't want to start looking at that now.

@mortent mortent merged commit 4f75cd8 into kptdev:main Aug 16, 2022
chunglu-chou pushed a commit to chunglu-chou/kpt that referenced this pull request Aug 20, 2022
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