From e271515385f5d5be2731a05299b869ce8d0d91d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bilqu=C3=A9?= <53470239+sbilque@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:42:28 +0200 Subject: [PATCH] Ability to add custom labels to the DB migration pods (#1878) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add the labels from the 'additional_labels' parameter in the awx-migration pods Co-authored-by: Stéphane BILQUÉ --- roles/installer/templates/jobs/migration.yaml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/installer/templates/jobs/migration.yaml.j2 b/roles/installer/templates/jobs/migration.yaml.j2 index a7184109..9d8321e3 100644 --- a/roles/installer/templates/jobs/migration.yaml.j2 +++ b/roles/installer/templates/jobs/migration.yaml.j2 @@ -8,6 +8,10 @@ metadata: {{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }} spec: template: + metadata: + labels: + {{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=8) | trim }} + {{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=8) | trim }} spec: {% if bundle_ca_crt %} initContainers: