-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Podman ignores labels that are key only #3854
Comments
I am able to reproduce this issue, will look into it. /assign |
This issue is already fixed with upstream code.
Shall be available with next release. |
Closing. Should be fixed in podman 1.6 |
This seems to have regressed again, at least on 1.8.0, running a container with just a key for the label doesn't add that label.l
|
Confirmed, looking into it |
Reopening, given that this is happening again |
Looks like our label parsing is rather entangled with environment parsing, which I think is the cause. |
We attempted to share all logic for parsing labels and environment variables, which on the surface makes lots of sense (both are formatted key=value so parsing logic should be identical) but has begun to fall apart now that we have added additional logic to environment variable handling. Environment variables that are unset, for example, are looked up against environment variables set for the process. We don't want this for labels, so we have to split parsing logic. Fixes containers#3854 Signed-off-by: Matthew Heon <[email protected]>
Wow, thanks for the quick response and fix! |
We attempted to share all logic for parsing labels and environment variables, which on the surface makes lots of sense (both are formatted key=value so parsing logic should be identical) but has begun to fall apart now that we have added additional logic to environment variable handling. Environment variables that are unset, for example, are looked up against environment variables set for the process. We don't want this for labels, so we have to split parsing logic. Fixes containers#3854 Signed-off-by: Matthew Heon <[email protected]>
/kind bug
Description
Podman 1.5.0 seems to ignore labels that are key only
Same thing with Docker:
Seems like a regression, because it seems to work with an older version
Output of
sudo podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: