Skip to content

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

@ievgenii-shepeliuk

Description

@ievgenii-shepeliuk

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 ".") 

Metadata

Metadata

Assignees

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