Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 2uasimojo 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 |
|
@2uasimojo: This pull request references HIVE-2391 which is a valid jira issue. 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 openshift-eng/jira-lifecycle-plugin repository. |
29af27f to
5249404
Compare
|
@jianping-shu this passed e2e-vsphere, so I reckon it's probably ready for you to take another stab at it! |
|
/hold Looks like I missed refactoring the preflight auth check for the new creds shape. |
5249404 to
39cf13e
Compare
|
/hold cancel |
apis/hive/v1/vsphere/machinepools.go
Outdated
| // Topology is the vSphere topology that will be used for virtual machines. | ||
| // If it is not present, a default value will be used. | ||
| // +optional | ||
| Topology *vsphere.Topology `json:"topology,omitempty"` |
There was a problem hiding this comment.
Part of the reason I switched to Topology here is that someone requested a "Folder" field (and it was present (alongside ResourcePool and TagIDs) on the Topology struct)
There was a problem hiding this comment.
That is to say, this object should grow at least a Folder field (and override as necessary) alongside some of the other topology fields
There was a problem hiding this comment.
As discussed offline:
In its current form, this PR is only keeping the overrides that already existed in the API. If we need to support more overrides and/or move the existing ones to per-fd-capable, we should do that under a separate card/PR.
If you can dig up "someone requested", let's get it into a new card.
Meanwhile, do you agree/accept leaving this as is?
| @@ -81,7 +81,7 @@ func validateVSphereMachineSets(t *testing.T, mSets []*machineapi.MachineSet, ex | |||
| assert.Equal(t, int32(4), vsphereProvider.NumCPUs, "unexpected NumCPUs") | |||
| assert.Equal(t, int32(4), vsphereProvider.NumCoresPerSocket, "unexpected NumCoresPerSocket") | |||
| assert.Equal(t, int32(512), vsphereProvider.DiskGiB, "unexpected DiskGiB") | |||
There was a problem hiding this comment.
Per note near the top: we should be able to override the folder of the generated machineset
|
The new multi-creds changes LGTM. My only concern (as noted in review comments) is that there are some additional fields (at least |
39cf13e to
896e851
Compare
|
/hold for QE |
896e851 to
7996e22
Compare
|
/test e2e security e2e: infra flake |
|
Allowable to override |
| } | ||
| if vsphere.DefaultDatastore == "" { | ||
| allErrs = append(allErrs, field.Required(vspherePath.Child("defaultDatastore"), "must specify vSphere defaultDatastore")) | ||
| if len(vsphere.Infrastructure.VCenters) == 0 { |
There was a problem hiding this comment.
Need to check if vsphere.Infrastructure != nil firstly, the CD with deprecated fields only doesn't have infrastructure.
There was a problem hiding this comment.
Good find @jianping-shu.
I actually think we want to loosen this check a bit. If I understand Mark's code, it'll upconvert the CD platform section to the new shape... but only after it has already been stored in etcd*. I.e. when we hit this admission hook, it is possible and allowable for the CR to be in the old shape.
@dlom do you agree?
*Side note: a mutating webhook might have been appropriate instead -- though I'm not sure how that works for legacy-shape CRs already in etcd.
7996e22 to
066a4e4
Compare
066a4e4 to
ca2765c
Compare
|
/test coverage that's a weird one. |
Followon addressing review from openshift#2731. MachinePool: - Removed `Topology` override - Restored ResourcePool and TagIDs overrides Deprovision: - Changed `--vsphere-vcenter` StringVar to `--vsphere-vcenters` StringSliceVar Platform Creds: - Redesigned to take `vcenters`, a list of vcenter server/username/password, matching (and unmarshaling into) the corresponding chunk of metadata.json. Docs: - Updated install-config sample to zonal shape. - Documented new creds shape.
ca2765c to
0746f91
Compare
|
/test e2e Actual test passed; infra flake during must-gather. security is same old same old, override when needed. |
|
@2uasimojo: The following test 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-sigs/prow repository. I understand the commands that are listed here. |
Co-Authored-By: @dlom