diff --git a/infrastructure/modules/postgres-app/job.yaml b/infrastructure/modules/postgres-app/job.yaml index f27ae36..e747087 100644 --- a/infrastructure/modules/postgres-app/job.yaml +++ b/infrastructure/modules/postgres-app/job.yaml @@ -3,6 +3,8 @@ kind: Job metadata: name: postgres-init spec: + dependsOn: + - name: infrastructure template: spec: restartPolicy: OnFailure diff --git a/infrastructure/modules/postgres-app/kustomization.yaml b/infrastructure/modules/postgres-app/kustomization.yaml index 48f9fa2..711a733 100644 --- a/infrastructure/modules/postgres-app/kustomization.yaml +++ b/infrastructure/modules/postgres-app/kustomization.yaml @@ -3,6 +3,3 @@ kind: Kustomization resources: - job.yaml -spec: - dependsOn: - - name: infrastructure