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

Allow custom data templating in images #3211

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kichristensen
Copy link
Contributor

What does this change

Support partial templating in the images section.
This will allow use of the ${bundle.custom.X} variables in the images section for the bundle manifest, allowing more flexibility to specify image tags, repository, digest, etc. during build.

What issue does it fix

Closes #2842

Notes for the reviewer

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Support partial templating in the images section.
This will allow use of the ${bundle.custom.X} variables in the images
section for the bundle manifest, allowing more flexibility to specify
image tags, repository, digest, etc. during build.

Signed-off-by: Kim Christensen <[email protected]>
@kichristensen kichristensen force-pushed the allowCustomTemplatingInImages branch 2 times, most recently from ea1add9 to 87c12d9 Compare August 31, 2024 21:11
Images are validated for valid digests during linting. If the image
digest is templating and no default value exist in the bundle definition
the linting will fail, because the digest will be invalid.

One gotcha here is that if only part of the digest is templated linting
will still fail.

Signed-off-by: Kim Christensen <[email protected]>
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.

Allow use of --custom argument for image repository, tag, and/or digest values
2 participants