From 21d2ad58d850cdf4f158391dffd28d337408d8e6 Mon Sep 17 00:00:00 2001 From: j37hr0 Date: Mon, 27 Apr 2026 11:08:25 +1200 Subject: [PATCH] testing if dependson works on jobs --- infrastructure/modules/postgres-app/job.yaml | 2 ++ infrastructure/modules/postgres-app/kustomization.yaml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) 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