OCM-5027 | feat: Added KubeletConfigClient and mock to be shared between ROSA and Terraform #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR arises as a result of a conversation between @nirarg and myself when discussing terraform-redhat/terraform-provider-rhcs#413
In terraform-redhat/terraform-provider-rhcs#413 I have created
KubeletConfigClient
interface that wraps the OCM SDK. The purpose of this approach is to make it easier to test implementations that have a dependency on the OCM SDK as we can replace the implementation with agomock
based one in the unit tests.By moving this into
ocm-common
, we hope to start a process of using the same approach in both TF and ROSA CLI and gradually expanding the number of clients we support. Consider this PR a "POC" that implements a handful of clients and provides some initial versions of base structs and interfaces to help us build upon this work.With this PR merged, I will update terraform-redhat/terraform-provider-rhcs#413 to use this approach.