Documentation
¶
Overview ¶
Package blockdevice extends the openstack_compute_instance_v2 Terraform schema so that block devices can reference an image by name.
The upstream Terraform provider only accepts an image UUID in block_device.uuid (the top-level image_name is ignored for boot-from-volume). That makes it impossible to use the same manifest on clusters that do not have a matching ImageV2 object or the same image UUID.
The extension is done fully on the Crossplane provider side: a new block_device.image_name attribute is added to the schema and resolved to block_device.uuid right before the upstream create function is called. On refresh the attribute is populated back from the image the boot volume was created from, so changing the name in the spec is detected as drift and forces a new server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureImageName ¶
ConfigureImageName adds block_device.image_name to the given resource and makes the create function resolve it to block_device.uuid.
Types ¶
This section is empty.