Panfactum / stack

The Panfactum Stack
https://panfactum.com
Other
9 stars 4 forks source link

feat: adds pod workingDir as an optional variable #36

Closed mschnee closed 1 week ago

mschnee commented 2 weeks ago

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 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.

mschnee commented 1 week ago

Documentation and lint updated :)

fullykubed commented 1 week ago

Already added!