Skip to content

Commit

Permalink
data/data/install.openshift.io_installconfigs.yaml: Added resourcePool
Browse files Browse the repository at this point in the history
New resourcePool install-config option needs to be present in schema
for install.openshift.io/InstallConfig
  • Loading branch information
willhaines committed Nov 15, 2021
1 parent 1c3338e commit aca54e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions data/data/install.openshift.io_installconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,11 @@ spec:
description: Password is the password for the user to use to connect
to the vCenter.
type: string
resourcePool:
description: ResourcePool is the absolute path of the resource
pool where virtual machines will be created. The absolute path
is of the form /<datacenter>/host/<cluster>/Resources/<resourcepool>.
type: string
username:
description: Username is the name of the user to use to connect
to the vCenter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,7 @@ func findImportOvaParams(client *vim25.Client, datacenter, cluster, resourcePool
}

if foundDatastore && foundNetwork {
<<<<<<< HEAD
importOvaParams.Host = hostObj
resourcePool, err := hostObj.ResourcePool(ctx)
if err != nil {
return nil, err
}
importOvaParams.ResourcePool = resourcePool
=======
return importOvaParams, nil
>>>>>>> fe685880f (vsphereprivate_import_ova: Support resource pool)
}
}

Expand Down

0 comments on commit aca54e3

Please sign in to comment.