There is an advantage in being able to configure the working directory of the pod, especially in the case of init containers, where a single image may be used for the containers as well as init containers. This becomes important when using things like prisma or Entity Framework, where the PWD actually has an impact on the command's functionality.
Note, workingDir = null is not valid according to the kubernetes provider. I'm unsure if optional(string, "") is the correct type in this case.
Per the Kubernetes Pod documentation here, this PR adds support for setting the
workingDir
property on the pod spec.There is an advantage in being able to configure the working directory of the pod, especially in the case of init containers, where a single image may be used for the containers as well as init containers. This becomes important when using things like
prisma
orEntity Framework
, where the PWD actually has an impact on the command's functionality.Note,
workingDir = null
is not valid according to the kubernetes provider. I'm unsure ifoptional(string, "")
is the correct type in this case.