https://garden.io logo
#🌱|help-and-getting-started
imagePullPolicy not configurable for container type (v0.12)
# 🌱|help-and-getting-started
m

most-analyst-11973

07/26/2023, 4:56 PM
Hey! I'm trying to use Garden to deploy some images that are built via a separate build process. We use a static tag that is not
latest
, and so I need to be able to configure the pod/deployment imagePullPolicy to be Always. It seems like this is not covered in the docs, and attempting it the key seems to be ignored. Not sure if this is intentional/bug or just a misconfiguration on my side. Thanks for any advice!
a

ancient-diamond-80011

07/27/2023, 9:23 AM
Hi! 👋 With the
kubernetes
deploy type, you should be able to use manifest yaml files with the
imagePullPolicy
set in them https://docs.garden.io/reference/action-types/deploy/kubernetes
m

most-analyst-11973

07/27/2023, 5:52 PM
Thanks @ancient-diamond-80011 let me give this a shot
hey, so got it working but it took a lot more copy/paste out of the guides than I expected - it seems like i basically just replicated the manifests that the
container
type does automatically for me. It's minor, but is this something that would count as a bug for the provider itself or not really?
a

ancient-diamond-80011

07/28/2023, 7:17 AM
nice, glad to hear you got it working! unfortunately some copy-paste is expected - after all, the
container
type pretty much is "added defaults on top of the
kubernetes
type". when you need to override those defaults to get a bit more specific, you also need to provide a bit more of the boilerplate too. with great flexibility comes some verbosity too 😅
m

most-analyst-11973

07/28/2023, 2:20 PM
Yep, totally understandable! Thanks again for the help!
c

chilly-gigabyte-83853

07/31/2023, 9:01 AM
Hi @most-analyst-11973, just FYI, we are planning to implement a
kubernetes-container
action type that would allow to extend the config of the
container
type with Kubernetes specific fields. You can track the issue here: https://github.com/garden-io/garden/issues/4729.
m

most-analyst-11973

07/31/2023, 5:26 PM
Oh awesome, thanks @chilly-gigabyte-83853 ! We're still on 0.12, i'm guessing this wouldn't be backported at all?