rancher / capi-ui-extension

Rancher Extension used in rancher/dashboard for Rancher Turtles CAPI Provisioning UI.
Apache License 2.0
8 stars 7 forks source link

Unable to edit an infrastructure provider #47

Closed valaparthvi closed 2 months ago

valaparthvi commented 2 months ago
  1. Create and infrastructure provider.
  2. Once created, select Edit Config from the kebab menu.
  3. Try to change cloud credential or update features, add variable or change description.

Errors out with: Operation cannot be fulfilled on capiproviders.turtles-capi.cattle.io "azure": the object has been modified; please apply your changes to the latest version and try again

valaparthvi commented 2 months ago

Still seeing this error when I try to edit the provider via YAML.

Steps to reproduce:

  1. Create a Provider.
  2. Once it is Active, Select Edit YAML from the Kebab menu.
  3. Make a change, and hit save.

image

  1. Click on Cancel.

image

eva-vashkevich commented 2 months ago

It looks like when saving YAMLs dashboard doesn't handle conflicts. It would be better to fix tis issue there instead of making it specific to capi provider. I've opened https://github.com/rancher/dashboard/issues/10972 to track it and disabled editing YAML until it is resolved.