Skip to main content

Module container_resources

Module container_resources 

Source
Expand description

Resolve deployment-time container allocations before planning or provisioning.

Structs§

KeptVolumeSize
A setup-source volume size raised to the size the deployment already has or chose.

Functions§

installed_volume_size_gib
The persistent volume capacity, in GiB, that state records as installed for container id. None when the container has no installed persistent storage or its size does not parse.
keep_volume_sizes_over_setup_source
Raise volume sizes from a setup source (a CloudFormation parameter, a Terraform variable or a CLI config file) that are below an installed volume’s capacity, or below the size the deployment currently selects for it, to the larger of the two.
parse_volume_size_gib
Parse whole-volume capacities used by cloud block disks. Legacy GB/TB spellings retain their existing GiB allocation semantics.
resolve_container_resources
Apply and validate selections without changing the release’s declared resource ranges. The same resolver is used by compute planning and deployment preparation.
retain_installed_volume_sizes
Keep installed volumes at their installed capacity when the deployment selects no size and the release default is smaller. Without a selection nobody asked for a size, so a release that lowers its default must not turn into a shrink of every installed deployment. Explicit selections are left to the planner’s shrink check.