twoliter
twoliter copied to clipboard
add image prep functions to imghelper
Description of changes:
Adds or moves functionality around image name generation, compression, and decompression to imghelper.
Testing done:
- Built
aws-k8s-1.28 - Repacked
aws-k8s-1.28 - Build
vmware-k8s-1.28 - Repacked
vmware-k8s-1.28
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.
- Split extensions from *_SUFFIX.
- Adjusted wording on OVF error.
- Cleaned up
compress_image. - Unified
decompress_image. - Dropped
get_data_imagefor a later PR.
- Move FILENAME_PREFIX, SYMLINK_PREFIX, and the _IMAGE_NAMEs to
imghelper - Limit scope of
decompress_imageto make it more consistent withcompress_image - Remove
VERSION_IDas an arg forsymlink_imagesince we're already assuming it's in the environment and to make the inputs more consistent withcompress_imageanddecompress_image.
Rebased.