Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add possibility to untar policy content to the disk when pulling OCI from registry. #107

Open
ievgenii-shepeliuk opened this issue Jan 6, 2023 · 1 comment

Comments

@ievgenii-shepeliuk
Copy link

ievgenii-shepeliuk commented Jan 6, 2023

Hello

It could be very useful to add --untar / --untardir flags to policy pull command.
So, the policy content could be retrieved to disk at one step, i.e.

policy pull --untar --untardir ~/policices .....`

Currently, to get raw sources from the policy OCI container, one need to execute 3 commands

policy pull ...
policy save ...
tar ...

The similar flags are implemented in helm pull command of Helm and it inspired the creation of this feature request.

Usage:
  helm pull [chart URL | repo/chartname] [...] [flags]
Flags:
      --untar                      if set to true, will untar the chart after downloading it
      --untardir string            if untar is specified, this flag specifies the name of the directory into which the chart is expanded (default ".") 
@ogazitt
Copy link
Contributor

ogazitt commented Jan 16, 2023

Thanks @ievgenii-shepeliuk!

This is indeed a useful enhancement and we will put it on our backlog. Or, feel free to submit a PR! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants