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

Fix cmd mounts #300

Merged
merged 3 commits into from
Jun 27, 2024
Merged

Fix cmd mounts #300

merged 3 commits into from
Jun 27, 2024

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Jun 26, 2024

Adds additional validations to sources to prevent hitting cryptic errors, or worse unexpected data in a specified source.

This is an edge case where the source is an image which we run a
command(s) in but are not extracting a subpath out.

Such a case is probably a mistake and I plan to make another PR which
introduces support for sending warnings back to the client but in any
case before this change it is completely broken and gives a cryptic
error due to trying to run a container against an empty filesystem.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
to extract

This is a case that doesn't really make sense is is almost certainly
user error, so make a friendly message for it.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 requested a review from a team as a code owner June 26, 2024 21:18
source.go Outdated Show resolved Hide resolved
Copy link
Contributor

@adamperlin adamperlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the HasPrefix usage should maybe be changed? Otherwise, it looks good

source.go Outdated Show resolved Hide resolved
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 merged commit 924a8a2 into Azure:main Jun 27, 2024
9 checks passed
@cpuguy83 cpuguy83 deleted the fix_cmd_mounts branch June 27, 2024 19:02
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.

2 participants