What does this PR do and why is this change necessary?
Crossplane provider-linode expects to use a single configured instance of the linode client across all invocations. However, due to how upjet operates, the configureProvider() gets invoked on every resource call. To preserve the client, see if the fp.Meta.Client is already initialized, and if so, re-use it.
✔️ How to Test
What are the steps to reproduce the issue or verify the changes?
How do I run the relevant unit/integration tests?
The main thing here should be verifying it doesn't break any usual terraform flows.
📷 Preview
If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.
📝 Description
What does this PR do and why is this change necessary? Crossplane provider-linode expects to use a single configured instance of the linode client across all invocations. However, due to how upjet operates, the configureProvider() gets invoked on every resource call. To preserve the client, see if the fp.Meta.Client is already initialized, and if so, re-use it.
✔️ How to Test
What are the steps to reproduce the issue or verify the changes?
How do I run the relevant unit/integration tests? The main thing here should be verifying it doesn't break any usual terraform flows.
📷 Preview
If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.