You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: On brand new build this doesnt happen, but can be a problem if people deploy one(staging) environment, do some development then go ahead and deploy their 2nd(prod) environment at a later date.
The existing flow for CI/CD pipeline deployment goes something like this
build image
check migration files
2.1 if no migration files skip to deploy
2.2 if there are migration files create migration job and waits for job to succeed
deploy (kustomize apply overlay/)
On a brand new repo during ci/cd, when there's no migration file it works, But if the first time running one already has migration files, the k8s environment does not have secret for migration job to mount, which would be created from external-secrets during deploy step.
The text was updated successfully, but these errors were encountered:
@deven96 Thanks so much!
I think the solution could be applying the external secret manifest before the deployments,
so it can deploy pre-requisites(kustomize) -> run migration -> deploy application(kustomize) then I think it should work in all scenarios
but separating the kustomize in 2 steps would increase some complexity, not sure if there's a better way.
Note: On brand new build this doesnt happen, but can be a problem if people deploy one(staging) environment, do some development then go ahead and deploy their 2nd(prod) environment at a later date.
The existing flow for CI/CD pipeline deployment goes something like this
2.1 if no migration files skip to deploy
2.2 if there are migration files create migration job and waits for job to succeed
On a brand new repo during ci/cd, when there's no migration file it works, But if the first time running one already has migration files, the k8s environment does not have secret for migration job to mount, which would be created from external-secrets during deploy step.
The text was updated successfully, but these errors were encountered: