-
Notifications
You must be signed in to change notification settings - Fork 2.9k
add artifact validation during container creation #27793
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
base: main
Are you sure you want to change the base?
Conversation
|
[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore. |
c9cce5f to
558c1b0
Compare
Validate artifact mounts exist at container creation time instead of start time. This prevents creation of containers that can never start due to missing artifacts, providing immediate feedback with clear error messages. Fixes: containers#27747 Signed-off-by: MayorFaj <[email protected]>
7ef0da3 to
ed3c92d
Compare
Signed-off-by: MayorFaj <[email protected]>
|
|
||
| // validateArtifactVolumes checks that all artifacts exist and are accessible | ||
| // at container creation time, preventing creation of containers that can never start. | ||
| func validateArtifactVolumes(ctx context.Context, rt *libpod.Runtime, artifactVolumes []*specgen.ArtifactVolume) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this function can be repurposed for start containers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good suggestion. would it be ideal to implement that in this PR, or create a followup PR ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the latest changes has this update now
…ation utility Signed-off-by: MayorFaj <[email protected]>
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?
Fixes #27747