CAPO: automatically push OS image to Glance

What does this MR do and why?

This MR brings up a new unit - get-openstack-images that automatically will pull images from diskimage-builder OCI artifact and push them into Glance if not already present, verification made by comparing the checksum.

The job itself reads the os-images-info configmap and creates a new configmap: openstack-images-uuids with the following format:

apiVersion: v1
data:
  ubuntu-jammy-hardened-rke2-1-26-9:
    openstack_glance_uuid: 0356b2ad-13da-439e-ad00-7d76999a5cdb
  ubuntu-jammy-plain-rke2-1-26-9:
    openstack_glance_uuid: fcbbe769-8344-49ac-b321-3f7d374f7f0a
kind: ConfigMap
metadata:
  creationTimestamp: "2024-01-05T13:46:32Z"
  name: openstack-images-uuids
  namespace: capo-system
  resourceVersion: "14947927"
  uid: 63170277-e179-4035-9424-bc2ccb588d67

#528 (closed)

Related reference(s)

depends on: sylva-projects/sylva-elements/container-images/oci-tools!2 (closed)

Test coverage

Edited by Mihai Zaharia

Merge request reports

Loading