mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
When a volume is updated, we merge the new definition to the old. But the volume's context comes from the plugin and is likely not present in the user's volume specification. Which means that if the user re-submits the volume specification to make an adjustment to the volume, we wipe out the context field which might be required for subsequent operations by the CSI plugin. This was discovered to be a problem with the Terraform provider and fixed there, but it's also a problem for users of the `volume create` and `volume register` commands. Update the merge so that we only overwrite the value of the context if it's been explictly set by the user. We still need to support user-driven updates to context for the `volume register` workflow. Ref: https://github.com/hashicorp/terraform-provider-nomad/pull/503 Fixes: https://github.com/democratic-csi/democratic-csi/issues/438
4 lines
112 B
Plaintext
4 lines
112 B
Plaintext
```release-note:bug
|
|
csi: Fixed a bug where volume context from the plugin would be erased on volume updates
|
|
```
|