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

image: added feature to inject proxy store assertions in build image #14947

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lorenzo-medici
Copy link

image: added feature to inject proxy store assertions in build image

This PR adds the possibility of including extra assertions in the created image at build time.
The reason for this is avoiding workarounds such as stopping the build, including proxy store assertions and resuming the build.

The solution adds the necessary fields to image.Options and the necessary control flow so that assertions contained in files passed with the --assert option (and in the future in the calls from ubuntu-image) will be imported and saved to the seed.

For now, only store assertions are allowed as I couldn't see a way to have a truly polymorphic approach to decoding each kind of assertion, resulting in the code found here. With this structure, making a new kind of assertion injectable would require adding its type to the 'switch`.

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

Successfully merging this pull request may close these issues.

1 participant