Commit Graph

25 Commits

Author SHA1 Message Date
Cody Jackson 9e03d4a41b Improve Vsphere UX around cloudinit/cloudconfig
There was confusion and misuse around cloudinit and cloudconfig.
This change switches things up so cloudinit is only used for the
legacy creation type and cloudconfig is used for all other creation
types.

Changes the textarea that was used for cloudconfig to
input-yaml to make it clear to users that they can enter yaml.

Switches the vmware cloud credential vcenter input to an input-url
so that we automatically strip the scheme from the input.

rancher/rancher#24314
2019-12-20 10:48:49 -07:00
Cody Jackson b93e895d78 Change the messaging and default creationtype
The backend was setting the default to legacy so that the legacy
template would still work when users migrate to the latest
version of the driver. This was causing the default value to
be legacy when creating a new vsphere template. Forcing
the backend to change the default will likely lead to problems
with the migration so we're making the change on the front end.

Ultimately we use the existing set default logic if a vsphere template
is being created (as opposed to edited) instead of just when the
creation type doesn't exist or is invalid.

We also changed the text for the legacy value to be friendlier.

rancher/rancher#24060
2019-11-13 16:15:01 -07:00
Cody Jackson 65fb8f49ab Add datastore cluster as an option for vsphere
rancher/rancher#24002
2019-11-11 11:18:24 -07:00
Cody Jackson 76adaf8658 Notify user of value missing from options
When using an older vsphere node template in the latest version it was
possible that a user entered value would not be a valid option. When
the value isn't a valid option the dropdown has nothing selected. To
improve the UX we now notify the user that the current value is no
longer valid and sask them to select a new value.

rancher/rancher#23920
2019-11-07 16:51:15 -07:00
Cody Jackson 1fd130667a Switch to new implementation of creationType
The backend has made a new implementation of creationType which allowed
me to remove the creationMethod concept and just use creationType.

This change allows us to properly populate the creation type form fields
when a user edits a vsphere nodetemplate.

rancher/rancher#23812
2019-11-04 13:33:01 -07:00
Cody Jackson 6c7052befd Enable unique custom attribute key selection
The keys for custom attributes needed to be unique. To enforce the
unique constraint I created the FormContextualKeyValue component.
This component behaves similarly to the FormContextualSelectArray
but handles key value pairs.

rancher/rancher#23782
2019-11-04 10:13:01 -07:00
Cody Jackson a39189f0f4 Repair vsphere node template editing
When editing a vsphere node template that used a RancherOS ISO
creation method it crashed the page due to an array not existing.

I also noticed that the tags, custom attributes and networks weren't
loading when editing so I resolved those issues too.

rancher/rancher#23796
2019-10-31 16:12:41 -07:00
Cody Jackson 5345de7e34 Parse the 'key=value' format of custom attributes
We weren't initializing custom attributes because we were not
parsing the backend format appropriately. We needed to parse
the 'key=value'.
2019-10-28 08:48:08 -07:00
Cody Jackson b3f5bfe615 Remove cloneFrom and contentLibrary while not used
If cloneFrom and contentLibrary shouldn't be used we delete them
from the config to prevent them from going being a part of the request.
2019-10-28 08:43:33 -07:00
Cody Jackson ea7dd8fb3d Make creationType use the appropriate values
creationType was using the wrong values after refactoring to
combine two dropdowns into one. I renamed the existing
config.creationType to creationMethod and now observe
creationMethod to properly set config.creationType.
2019-10-28 08:43:09 -07:00
Cody Jackson 4b2c79ea3d Improve vsphere driver UX
-We now prepopulate fields as select component instead of just
free-form text fields.
-We added support for cloning from different sources.
-We also added support for custom attributes and tags.

To implement the above features we also added support for promise
based content for new-select and search-select and created a new
component contextual-select-array which provides a method for
filtering content based on previous selections.

rancher/rancher#21580
2019-10-21 13:19:14 -07:00
loganhz 8069cf612d Cannot change docker install URL in vsphere
https://github.com/rancher/rancher/issues/19141
2019-04-28 18:12:59 +08:00
Westly Wright 775e57c0fd
Add cloud credential id check to node template mixin
rancher/rancher#19275
2019-04-02 10:28:08 -07:00
loganhz f9658e8c05 Fix vsphere update issue
https://github.com/rancher/rancher/issues/18894
2019-03-14 10:06:22 +08:00
Sergej Nikolaev ef5e74ea26 fix default vapp properties 2019-02-27 13:43:38 +03:00
Westly Wright a6f0252bb2
remove password field from vmwarevsphereConfig
rancher/rancher#18040
2019-02-12 17:16:46 -07:00
Westly Wright 3df948e9ab
Add cloud credentials page, resource, and add modal
WIP

WIP

WIP

cleanup
2019-02-11 17:37:05 -07:00
Sergej Nikolaev 124ae463c1 vsphere: support vApp options 2018-10-13 06:38:50 +03:00
gary huang c55661b284
format code style 2018-09-04 09:45:14 +08:00
gary huang dfcb7bf57f
format code style 2018-09-04 09:42:32 +08:00
gary huang 5f12c4eae5
Format code style 2018-09-04 09:34:35 +08:00
gary huang cc9f7e7a12
Update component.js 2018-09-03 09:23:29 +08:00
gary huang 7f35bbe9a0
Be able to handle multiple networks
docker-machine supports creating vm with multiple networks defined. Rancher UI should be able to deal with multiple networks either
2018-09-01 23:36:03 +08:00
loganhz 29f07ab9ae Enable cfgparam disk.enableUUID=TRUE by default
https://github.com/rancher/rancher/issues/14334
2018-08-22 16:28:11 +08:00
Westly Wright f777cf1589
remove nested components to make using custom drivers (ui-skel) easy 2018-08-15 14:05:20 -07:00