From add1390bcde9518fd99b0b857c6908e16f2c7026 Mon Sep 17 00:00:00 2001 From: Sam Lucidi Date: Tue, 26 Nov 2024 12:51:56 -0500 Subject: [PATCH] Expose FEATURE_RETAIN_PRECOPY_IMPORTER_PODS This change exposes the feature flag to retain the CDI importer pods on the controller CR. Signed-off-by: Sam Lucidi --- operator/roles/forkliftcontroller/defaults/main.yml | 1 + .../templates/controller/deployment-controller.yml.j2 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/operator/roles/forkliftcontroller/defaults/main.yml b/operator/roles/forkliftcontroller/defaults/main.yml index 1b0828f0d..80ba5b46e 100644 --- a/operator/roles/forkliftcontroller/defaults/main.yml +++ b/operator/roles/forkliftcontroller/defaults/main.yml @@ -36,6 +36,7 @@ controller_snapshot_status_check_rate_seconds: 10 controller_cleanup_retries: 10 controller_vsphere_incremental_backup: true controller_ovirt_warm_migration: true +controller_retain_precopy_importer_pods: false controller_max_vm_inflight: 20 controller_filesystem_overhead: 10 controller_block_overhead: 0 diff --git a/operator/roles/forkliftcontroller/templates/controller/deployment-controller.yml.j2 b/operator/roles/forkliftcontroller/templates/controller/deployment-controller.yml.j2 index 7082b2b8b..41963ee19 100644 --- a/operator/roles/forkliftcontroller/templates/controller/deployment-controller.yml.j2 +++ b/operator/roles/forkliftcontroller/templates/controller/deployment-controller.yml.j2 @@ -103,6 +103,10 @@ spec: - name: FEATURE_OVIRT_WARM_MIGRATION value: "true" {% endif %} +{% if controller_retain_precopy_importer_pods|bool %} + - name: FEATURE_RETAIN_PRECOPY_IMPORTER_PODS + value: "true" +{% endif %} {% if ovirt_osmap_configmap_name is defined %} - name: OVIRT_OS_MAP value: {{ ovirt_osmap_configmap_name }}