https://garden.io logo
c

calm-family-29323

04/20/2023, 8:14 AM
What's the point of
args
and
command
being different parameters? Couldn't it all be a command with args passed as well?
p

purple-oyster-28927

04/20/2023, 8:35 AM
Assuming the generic context of K8s/containers: Command can be default, args can be custom. if my image is built with
tail
as the command I can pass
<filename>
or
-f
etc as args, however I don't want to override
tail
with
cat
. It is actually quite significant in distroless images where passing a custom command would not succeed if the image was built with only a single binary and its runtime deps.
c

calm-family-29323

04/20/2023, 8:36 AM
ah I see, ty for making it clear
I'm the new generation which has had containers abstracted from my sight with helm, kubernetes and such
p

purple-oyster-28927

04/20/2023, 8:41 AM
I can completely feel you, I had challenges with kernels and loading drivers for PCI cards or Hypervisor internals
c

calm-family-29323

04/20/2023, 8:58 AM
With this information I gather that the kubernetes-exec aciton types should only have the
spec.command
field as the original container entry point is relevant and we're running a command in the container. @swift-garage-61180 does that make sense?
s

swift-garage-61180

04/20/2023, 9:58 AM
Yeah, sounds good.