blockdevice

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func ConfigureImageName(r *config.Resource)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL