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

fix: Use the dynamic client in the InventoryClient #515

Merged

Conversation

mortent
Copy link
Member

@mortent mortent commented Jan 22, 2022

This updates the InventoryClient implementation to use the dynamic client, rather than the builder and info functionality. It means we don't have to use the resource.Info types, which removes the need for the InfoHelper in the InventoryClient. The dynamic client is also easier to work with and comes with a FakeDynamicClient implementation that is easier to use than stubbing out the REST api through the TestFactory.

@k8s-ci-robot k8s-ci-robot requested review from ash2k and seans3 January 22, 2022 23:19
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 22, 2022
@mortent mortent requested a review from karlkfi January 22, 2022 23:20
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 24, 2022
@mortent mortent force-pushed the UseDynamicClientInInventoryClient branch from 6ea9c66 to ceef78a Compare January 24, 2022 19:00
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 24, 2022
@mortent mortent force-pushed the UseDynamicClientInInventoryClient branch from ceef78a to aebd70b Compare January 24, 2022 19:00
@mortent mortent requested a review from ash2k January 24, 2022 19:08
Copy link
Contributor

@seans3 seans3 left a comment

Choose a reason for hiding this comment

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

This looks good to me. I'll let others have a look. If there are no objections we'll merge this in two days.

Copy link
Member

@ash2k ash2k left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 24, 2022
@mortent mortent force-pushed the UseDynamicClientInInventoryClient branch from aebd70b to 8325b7f Compare January 25, 2022 03:35
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 25, 2022
@mortent
Copy link
Member Author

mortent commented Jan 25, 2022

/retest

1 similar comment
@mortent
Copy link
Member Author

mortent commented Jan 26, 2022

/retest

Copy link
Contributor

@seans3 seans3 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 26, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ash2k, mortent, seans3

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 95da18d into kubernetes-sigs:master Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants