When running an openshift-install for an IPI install of vSphere if you omit the username you will get an error that contains:
ERROR failed to fetch Metadata: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: [platform.vsphere.vcenters[0].username: Required value: must specify the username
The above error implies the key should be username but after inspecting https://github.com/openshift/installer/blame/release-4.21/pkg/types/vsphere/platform.go#L306 I noticed it needed to be user. Possibly:
allErrs = append(allErrs, field.Required(fldPath.Index(index).Child("user"), "must specify the user"))
It appears the error text in https://github.com/openshift/installer/blob/release-4.21/pkg/types/vsphere/validation/platform.go#L145-L147 is the source of the confusion.
platform:
vsphere:
vcenters:
- ...
When running an
openshift-installfor an IPI install of vSphere if you omit the username you will get an error that contains:The above error implies the key should be
usernamebut after inspecting https://github.com/openshift/installer/blame/release-4.21/pkg/types/vsphere/platform.go#L306 I noticed it needed to beuser. Possibly:It appears the error text in https://github.com/openshift/installer/blob/release-4.21/pkg/types/vsphere/validation/platform.go#L145-L147 is the source of the confusion.