Skip to content

Images within Image Archives should be found when using zarf dev find-images #4509

@AustinAbro321

Description

@AustinAbro321

Is your feature request related to a problem? Please describe.

Currently images in Image Archives do not show up in zarf dev find-images. Assuming there is a valid path to a tar file, Zarf should show all of the images in it in the output of zarf dev find-images.

Describe the behavior you'd like

  • Given a component with an image archive. The image archive was made with the image kiwix-data:local
  - name: kiwix-serve
    imageArchives:
      - path: kiwix-data.tar
  • When I run zarf dev find-images
  • Then I receive an output that looks like this:
components:
 - name: kiwix-serve
    imageArchives:
      - path: kiwix-data.tar
        images:
          - kiwix-data:local

Additional context

The implementor of this will run into a problem where imageArchives.images is required by the schema. In order to achieve this we may have to arbitrarily set the images field if it empty before loading the definition in packager.FindImages()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions