Hey, I'm using many stacks (20+) configured from a central git repo with komodo v1.19.1. The idea is to use this simple procedure to update all changed stacks whenever a new commit is made to the repo
[[procedure]]
name = "git-push-redeploy"
config.schedule = "Run every day at 1:01 am"
[[procedure.config.stage]]
name = "Batch Pull"
enabled = true
executions = [
{ execution.type = "BatchPullStack", execution.params.pattern = "*", enabled = true }
]
[[procedure.config.stage]]
name = "Batch Redeploy"
enabled = true
executions = [
{ execution.type = "BatchDeployStackIfChanged", execution.params.pattern = "*", enabled = true }
]
Deploying the stacks individually works fine. However, I'm running into multiple issues when trying to batch deploy:
- When configuring the repo on each stack individually (no shared "Repo" resource),
BatchDeployStackIfChanged won't recognize that anything has changed. Additionally, typically the compose.yaml editor doesn't show up unless I recently used "Redeploy" (see screenshot).
- When configuring the repo as a shared resource and run the same procedure, I get this kind of error on most (but not all) of the stacks:
ERROR: Failed at PullStack
TRACE:
1: 500 Internal Server Error
2: Missing compose file at compose.yaml
Any advice on how to properly configure this? Or perhaps I'm looking at a bug here? I have a suspicion that Komodo is trying to clone the repo many times to the same location, overwriting/deleting files in a race condition-like behavior.
Hey, I'm using many stacks (20+) configured from a central git repo with komodo v1.19.1. The idea is to use this simple procedure to update all changed stacks whenever a new commit is made to the repo
Deploying the stacks individually works fine. However, I'm running into multiple issues when trying to batch deploy:
BatchDeployStackIfChangedwon't recognize that anything has changed. Additionally, typically thecompose.yamleditor doesn't show up unless I recently used "Redeploy" (see screenshot).Any advice on how to properly configure this? Or perhaps I'm looking at a bug here? I have a suspicion that Komodo is trying to clone the repo many times to the same location, overwriting/deleting files in a race condition-like behavior.