kitops icon indicating copy to clipboard operation
kitops copied to clipboard

Advanced filtering for unpack

Open gorkem opened this issue 7 months ago • 9 comments

Describe the problem you're trying to solve It should be possible to unpack only named artifacts from an artifact group. For instance, it should be possible to unpack only README.md from docs.

Describe the solution you'd like Add a new flag to unpack command like --filter the value of the filter should be able to indicate the artifact type and a name/patch to match. Any names/paths that partially or fully to the filter should be extracted.

And example would be kit unpack --filter=code:*config.* which would extract all the files that has "config." in the path names

  • The flag should support glob patterns for flexibility.
  • Ensure that the implementation is backward compatible. It should be possible to do --filter:docs:* to extract all docs layers.

gorkem avatar Jul 04 '24 17:07 gorkem