CI pipeline does not update docker-images.json or scheduler/config/manager/kustomization.yaml
The CI pipeline does commit the changes to docker-images.json and scheduler/config/manager/kustomization.yaml.
When importing the terraform module the images that are deployed are the ones defined in docker-images.json and scheduler/config/manager/kustomization.yaml which are committed to the repo and not the ones that would be calculated by the CI job for a given commit. This means we end up deploying old image versions of components since the scheduler deploys the images in docker-image.json and the terraform module deploys the image defined in scheduler/config/manager/kustomization.yaml .
Another issue I found locally is that the docker image tags are different than the ones the CI job calculates. For the commit 9add421e, locally I get registry.gitlab.com/gitlab-org/opstrace/opstrace/scheduler:0ec566d077fe96a31ebc048d89a91bbc864c2d27
when I run cd scheduler && make docker
but the CI job generated registry.gitlab.com/gitlab-org/opstrace/opstrace/scheduler:83c4aa3643039b67b271568e27bb4c55e76939be
.