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

add an annotation with layer contents #195

Open
tych0 opened this issue Sep 17, 2021 · 0 comments
Open

add an annotation with layer contents #195

tych0 opened this issue Sep 17, 2021 · 0 comments

Comments

@tych0
Copy link
Collaborator

tych0 commented Sep 17, 2021

Along side the StackerContentsAnnotation, it would be nice to have a LayerContentsAnnotation = "com.cisco.layer_contents", which is a list (maybe in json format) of the layer contents. This is especially easy for stacker to generate since in the btrfs backend it has the mtree information, and in the overlay backend it has the overlay/ directory with exactly the contents.

One question here is what to do about whiteouts. I see two possible options:

  1. have the json object be a map, so {"contents": ["/usr/bin/..."], "whiteouts": ["/etc/config.conf"]}, with a list of the whiteouts
  2. generate filenames as in the oci spec, so .wh.foo

Either option will require some processing of the contents of the mtree/overlay, so it's probably down to whichever is easier for tools/humans to consume.

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

1 participant