-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration of nomad_external_volume to nomad_csi_volume omits values #494
Comments
Hi @dcarbone!
|
Howdy @tgross, You'll have to forgive my relative ignorance of the CSI specification, however this field seems to be required by I doubt that project is doing anything beyond the typical scope of what is typically done with CSI drivers, perhaps the As mentioned in my initial post, I do not need to specify the context block, nor the Also, its a bit obvious in hindsight that |
Ah, thanks for that clarification! The keys in the Let me take a quick crack at seeing where the context might be getting dropped and report back. |
Using:
Attempting to migrate an existing
nomad_external_volume
resource via this chain:nomad_csi_volume
resourceterraform import nomad_csi_volume.$NAME $VOLUME_ID@$NAMESPACE
terraform rm nomad_external_volume.$NAME
The above always results in the following:
1. The
capacity_min
,capacity_max
,secrets
, andmount_options
fields do not seem to be imported properly, their state always requires update on subsequent apply:2. The
node_attach_driver
field seems to be un-definable:From the task logs:
I cannot find a way to specifically set this. Creating new
nomad_csi_volume
resources with this same plugin are working perfectly, as are ones created with the now-deprecatednomad_external_volume
resource.I think this is something missing within the
import
implementation for the "new"nomad_csi_volume
type.The text was updated successfully, but these errors were encountered: