When `type` for a `deploy` block is `container`, `...
# 🌱|help-and-getting-started
m
As part of my garden file for a microservice, I have a script which is being executed in a
run
block that's part of the deployment process and is listed as a dependency for the service. It does not need to be run when cleaning up. When the
type
for that block is
kubernetes
and I provide the manifest, this script is not run during
garden cleanup deploy
. When the type is
container
and I provide an image for the container, all scripts that are executed in
run
blocks are executed during the cleanup process. I'm not changing the dependencies, only the
type
for the service. AFAICT there shouldn't be any reason for these
run
blocks to be executing during cleanup ever, but I'm not sure why they specifically do when the
type
is container rather than
kubernetes
. This feels like a bug to me but I can't say for sure.
c
Hey @most-tent-39133, could you please post a small repro (the Actions config files should suffice) to illustrate your problem? From your description it's a tiny bit hard to understand if it's a bug or a misconfiguration. Thanks 🙏
4 Views