diff --git a/dockerfiles/application.yaml b/dockerfiles/application.yaml index e854cfb627c..f26c91d6c07 100644 --- a/dockerfiles/application.yaml +++ b/dockerfiles/application.yaml @@ -418,8 +418,8 @@ spec: path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - op: replace - path: /spec/template/spec/containers/0/imagePullPolicy - value: Always + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - target: kind: Job name: migrate-database @@ -428,8 +428,8 @@ spec: path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - op: replace - path: /spec/template/spec/containers/0/imagePullPolicy - value: Always + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - target: kind: Job name: seed-database @@ -438,8 +438,8 @@ spec: path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - op: replace - path: /spec/template/spec/containers/0/imagePullPolicy - value: Always + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} # Patch dashboard database setup jobs - target: kind: Job @@ -448,9 +448,15 @@ spec: - op: replace path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-dashboard/review:{{DASHBOARD_CONTAINER_TAG}} + - op: replace + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-dashboard/review:{{DASHBOARD_CONTAINER_TAG}} - op: replace path: /spec/template/spec/containers/0/imagePullPolicy value: Always + - op: add + path: /spec/template/spec/initContainers/0/imagePullPolicy + value: Always - target: kind: Job name: migrate-dashboard-database @@ -458,9 +464,15 @@ spec: - op: replace path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-dashboard/review:{{DASHBOARD_CONTAINER_TAG}} + - op: replace + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-dashboard/review:{{DASHBOARD_CONTAINER_TAG}} - op: replace path: /spec/template/spec/containers/0/imagePullPolicy value: Always + - op: add + path: /spec/template/spec/initContainers/0/imagePullPolicy + value: Always - target: kind: Job name: seed-dashboard-database @@ -468,9 +480,15 @@ spec: - op: replace path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-dashboard/review:{{DASHBOARD_CONTAINER_TAG}} + - op: replace + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-dashboard/review:{{DASHBOARD_CONTAINER_TAG}} - op: replace path: /spec/template/spec/containers/0/imagePullPolicy value: Always + - op: add + path: /spec/template/spec/initContainers/0/imagePullPolicy + value: Always # Patch pivcac database jobs/update crl CronJob - target: kind: Job @@ -514,8 +532,8 @@ spec: path: /spec/template/spec/containers/1/image value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - op: replace - path: /spec/template/spec/containers/0/imagePullPolicy - value: Always + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} # Patch Worker Image - target: kind: Deployment @@ -525,8 +543,8 @@ spec: path: /spec/template/spec/containers/0/image value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} - op: replace - path: /spec/template/spec/containers/0/imagePullPolicy - value: Always + path: /spec/template/spec/initContainers/0/image + value: {{ECR_REGISTRY}}/identity-idp/idp:{{IDP_CONTAINER_TAG}} # Patch PIVCAC Image - target: kind: Deployment