Skip to content

Label image references with original image #383

@c-pius

Description

@c-pius

‼️ 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

  • .descriptor.component.resources[].labels includes a label preserving the original image
  • at initial creation: .descriptor.component.resources[].labels[<name of the new label>].value == .descriptor.component.resources[].access.imageReference
    • after transfer, the values differ

DEV Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions