podman play kube
(rootless) does not set command
and args
as specfied at the k8s specs
#8803
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes describes how pods started by k8s are expected to behave when
CMD
andENTRYPOINT
are (possibly) defined at the image andcommand
andargs
passed (optionally) from the pod declaration.When assuming that
podman kube play
should behave as k8s and podman 2.1 do, this is a bug.If it should not, which I have difficulties understanding, but, missing deeper insights into the project, cannot rule out, it is a breaking change from 2.1 to 2.2 and should be documented as such.
I have suggested a resolution at #8666, which currently and from my perspective, is stalling. I can only guess for the reasons (hoping not to hurt feelings), but I feel it is not being recognized as either being a bug or being a breaking change.
Personally, I feel that discussing about a fortnight about the resolution of either a bug or a breaking change is too long.
If I have trodden on any feet, I ask to be excused, I do not mean to be disrespectful.
Steps to reproduce the issue:
The problem is that containers from images, which have both
ENTRYPOINT
andCMD
set at the image level, and pod declarations which (legitimately, IMHO) omitcommand
andargs
, the container does not and cannot start.Consider the following pod definition:
Describe the results you received:
With podman 2.2, on the other hand, it crashes, exhibiting
Describe the results you expected:
With podman 2.1, the pod generating mechanism takes both
command
andargs
from the image and starts just fine, which I would expect to continue with 2.2 deriving from my assumption above. If my assumption is false, I'd like to have a loud and clear warning in the changelogs and be grateful for an explanation.Additional information you deem important (e.g. issue happens only occasionally):
#8666 has further details.
The text was updated successfully, but these errors were encountered: