Module deploy

Module deploy 

Source
Expand description

Β§Write deployments merging image with configmap

Create a merged filesystem tree with the image and mounted configmaps.

StructsΒ§

ImageState πŸ”’
State of a locally fetched image
LayerProgressConfig πŸ”’
Configuration for layer progress printing
PreparedImportMeta πŸ”’
RequiredHostSpec πŸ”’
Variant of HostSpec but required to be filled out

EnumsΒ§

MergeState πŸ”’
The source of data for staging a new deployment
PreparedPullResult πŸ”’

ConstantsΒ§

BASE_IMAGE_PREFIX πŸ”’
BOOTC_DERIVED_KEY πŸ”’
Set on an ostree commit if this is a derived commit

FunctionsΒ§

check_bootc_label πŸ”’
check_disk_space_composefs πŸ”’
Verify there is sufficient disk space to pull an image into the composefs store for the native composefs backend (uses a raw ImageManifest).
check_disk_space_inner πŸ”’
Core disk space check: verify that bytes_to_fetch fits within available space, leaving at least min_free bytes reserved.
check_disk_space_ostree πŸ”’
Verify there is sufficient disk space to pull an image into the ostree repo. Respects the repository’s configured min-free-space threshold.
check_disk_space_unified πŸ”’
Verify there is sufficient disk space to pull an image into the composefs store via the ostree unified-storage path (uses PreparedImportMeta).
cleanup πŸ”’
deploy πŸ”’
descriptor_of_progress πŸ”’
find_newest_deployment_name πŸ”’
fixup_etc_fstab πŸ”’
A workaround for https://github.com/ostreedev/ostree/issues/3193 as generated by anaconda.
get_base_commit πŸ”’
If commit is a bootc-derived commit (e.g. has configmaps), return its base.
handle_layer_progress_print πŸ”’
Write container fetch progress to standard output.
image_exists_in_unified_storage πŸ”’
Check whether the image exists in bootc’s unified container storage.
new_importer πŸ”’
Wrapper for pulling a container image, wiring up status output.
new_importer_with_config πŸ”’
Wrapper for pulling a container image with a custom proxy config (e.g. for unified storage).
new_proxy_config πŸ”’
Create an ImageProxyConfig with bootc’s user agent prefix set.
origin_from_imageref πŸ”’
prefix_of_progress πŸ”’
prepare_for_pull πŸ”’
prepare_for_pull_unified πŸ”’
Unified approach: Use bootc’s CStorage to pull the image, then prepare from containers-storage. This reuses the same infrastructure as LBIs.
prune_container_store πŸ”’
Gather all bound images in all deployments, then prune the image store, using the gathered images as the roots (that will not be GC’d).
pull πŸ”’
Wrapper for pulling a container image, wiring up status output.
pull_from_prepared πŸ”’
pull_unified πŸ”’
Unified pull: Use podman to pull to containers-storage, then read from there
rollback πŸ”’
Implementation of rollback functionality
stage πŸ”’
Stage (queue deployment of) a fetched container image.
switch_origin_inplace πŸ”’
wipe_ostree πŸ”’
write_reboot_required πŸ”’
Update the /run/reboot-required file with the image that will be active after a reboot.