imagePullPolicy not configurable for container typ...
# 🌱|help-and-getting-started
m
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
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
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
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
Yep, totally understandable! Thanks again for the help!
c
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
Oh awesome, thanks @chilly-gigabyte-83853 ! We're still on 0.12, i'm guessing this wouldn't be backported at all?
2 Views