SPLAT-1211: recognize topology and failure domains represented by the infrastructure resource#250
Conversation
|
I would expect this lint error since there isn't a provider using the infrastructure resource until Nutanix or vSphere providers are implemented. |
|
Should we add the appropriate no lints for now so that this doesn't give a false signal on other PRs? Then they can be removed when they are no longer required? I assume the motivation here is to share the commonly needed parts for the Nutanix and vSphere failure domain implementations and get them merged in chunks? |
Yes, that makes sense, I'll add the no lint. Correct, the motivation was to break out the common pieces to get them merged in chunks. |
infrastructure resource
infrastructure resource
|
/lgtm |
elmiko
left a comment
There was a problem hiding this comment.
this makes sense to me, i just have a question and request.
|
|
||
| infrastructure := configv1builder.Infrastructure().AsAWS("test", "eu-west-2").WithName(util.InfrastructureName).Build() | ||
| Expect(k8sClient.Create(ctx, infrastructure)).To(Succeed()) | ||
|
|
There was a problem hiding this comment.
are there any new tests associated with the change, or should the old test just keep working?
i'm wondering if we need a test for the specific logic changes.
There was a problem hiding this comment.
The old tests should just continue to work. I'm expecting vSphere and Nutanix to implement unit tests that specifically exercise the consumption of the infrastructure resource.
| // | ||
| //nolint:cyclop | ||
| func buildFailureDomains(logger logr.Logger, machineSets []machinev1beta1.MachineSet, machines []machinev1beta1.Machine) (*machinev1builder.FailureDomainsApplyConfiguration, error) { | ||
| //nolint:cyclop,unparam |
There was a problem hiding this comment.
since we are adding the unparam here, i think we should add a comment mentioning that the infra is a TODO or something, waiting for the nutanix and vsphere impls.
There was a problem hiding this comment.
good call out, will handle that
| } | ||
|
|
||
| func newProviderConfigFromProviderSpec(logger logr.Logger, providerSpec machinev1beta1.ProviderSpec, platformType configv1.PlatformType) (ProviderConfig, error) { | ||
| //nolint:unparam |
…ure resource Co-Authored-By: vr4manta <vr4manta@gmail.com>
|
@rvanderp3: This pull request references SPLAT-1211 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@rvanderp3: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/approve IIUC the tests that are currently failing are expected to fail. I think @elmiko's comments have been resolved so we can continue |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR introduces the infrastructure resource to aid in the resolution of topology and failure domains for platforms such as vSphere.