fix: set defaults for AWS CP and Worker instanceType #504
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.
Moved d2iq-labs#51
Addressed the pending review comments
What problem does this PR solve?:
update existing unit tests to use default schema
NOTE
Once this PR is finalized, I will create follow up PR to set instance profile and some other changes in the API types that would ensure that it creates variable schema from the object instead of creating new one.
Which issue(s) this PR fixes:
Fixes # #485
How Has This Been Tested?:
Tried to test locally using make e2e-test E2E_LABEL='provider:AWS && cni:Cilium' but local environment timed outs during initializations. Looking into fixing local environment (colima +docker +kind on mac)
Tested manually be creating AWS cluster.
aws-quick-start cluster class has following
and workers
Created AWS cluster without adding instanceType variable, CAREN patched AWSMachineTemplate with default instanceType.
** Special notes for your reviewer:**
The approach taken in this PR will be used as guide to set default for other variables.