From 9f823901e83dd4142a42b53f3b611af56387a0f3 Mon Sep 17 00:00:00 2001 From: Ruben Romero Montes Date: Tue, 30 Jun 2026 13:18:22 +0200 Subject: [PATCH] fix: correct nindent value for application.container in Job templates The trustification.application.container helper was included with nindent 6 instead of nindent 10 in all three init Job templates, placing the resources block at the wrong YAML indentation level when resource limits are configured. This matches the pattern already used in service Deployment templates. Co-Authored-By: Claude Opus 4.6 --- charts/trustify/templates/init/create-database/020-Job.yaml | 2 +- charts/trustify/templates/init/create-importers/020-Job.yaml | 2 +- charts/trustify/templates/init/migrate-database/020-Job.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/trustify/templates/init/create-database/020-Job.yaml b/charts/trustify/templates/init/create-database/020-Job.yaml index 83f2cd1..91fbd6a 100644 --- a/charts/trustify/templates/init/create-database/020-Job.yaml +++ b/charts/trustify/templates/init/create-database/020-Job.yaml @@ -42,7 +42,7 @@ spec: containers: - name: job {{- include "trustification.common.defaultImage" $mod | nindent 10 }} - {{- include "trustification.application.container" $mod | nindent 6 }} + {{- include "trustification.application.container" $mod | nindent 10 }} env: # connect using the `createDatabase` settings diff --git a/charts/trustify/templates/init/create-importers/020-Job.yaml b/charts/trustify/templates/init/create-importers/020-Job.yaml index 3a5253a..285bb00 100644 --- a/charts/trustify/templates/init/create-importers/020-Job.yaml +++ b/charts/trustify/templates/init/create-importers/020-Job.yaml @@ -39,7 +39,7 @@ spec: containers: - name: job {{- include "trustification.common.defaultImage" $mod | nindent 10 }} - {{- include "trustification.application.container" $mod | nindent 6 }} + {{- include "trustification.application.container" $mod | nindent 10 }} env: {{- include "trustification.psql.envVars" ( dict "root" . "database" ( merge ( deepCopy (.Values.modules.createImporters.database | default dict ) ) (deepCopy .Values.database) ) ) | nindent 12 }} diff --git a/charts/trustify/templates/init/migrate-database/020-Job.yaml b/charts/trustify/templates/init/migrate-database/020-Job.yaml index f486776..daa0982 100644 --- a/charts/trustify/templates/init/migrate-database/020-Job.yaml +++ b/charts/trustify/templates/init/migrate-database/020-Job.yaml @@ -40,7 +40,7 @@ spec: containers: - name: job {{- include "trustification.common.defaultImage" $mod | nindent 10 }} - {{- include "trustification.application.container" $mod | nindent 6 }} + {{- include "trustification.application.container" $mod | nindent 10 }} env: {{- include "trustification.postgres.envVars" ( dict "root" . "database" ( merge ( required "Using migrateDatabase requires setting .Values.migrateDatabase" (deepCopy .Values.migrateDatabase) ) ( deepCopy .Values.database ) ) ) | nindent 12 }}