‼️ Only do after #316 (comment) is done
Description
Image used by the module are already included in the resources of the component version, e.g. /kyma/kyma-modules/blob/30da84fbf43da2f16ad47ffcde887a1211e0a965/telemetry/moduletemplate-telemetry-1.57.2.yaml#L76-L86
Extend the labels of these image resources with an additional label preserving the original image reference. Define a proper name for this label.
Reasons
Runtime Bootstrapper requires an explicit mapping of images to replace. As the imageReference is localized after transfer, the info about the original image ref is gone. To still have this information accessible, we have to add this info to the metadata of the component version.
AC
DEV Notes
Description
Image used by the module are already included in the resources of the component version, e.g.
/kyma/kyma-modules/blob/30da84fbf43da2f16ad47ffcde887a1211e0a965/telemetry/moduletemplate-telemetry-1.57.2.yaml#L76-L86Extend the labels of these image resources with an additional label preserving the original image reference. Define a proper name for this label.
Reasons
Runtime Bootstrapper requires an explicit mapping of images to replace. As the
imageReferenceis localized after transfer, the info about the original image ref is gone. To still have this information accessible, we have to add this info to the metadata of the component version.AC
.descriptor.component.resources[].labelsincludes a label preserving the original image.descriptor.component.resources[].labels[<name of the new label>].value == .descriptor.component.resources[].access.imageReferenceDEV Notes
modulectl/internal/service/componentdescriptor/resources/ociartifactresource.go
Lines 30 to 37 in 6aa3ba5