From 2853af1082188faa65fee375db4ba369bd0fbfb8 Mon Sep 17 00:00:00 2001 From: Alexandr Stefurishin Date: Tue, 10 Dec 2024 10:35:19 +0300 Subject: [PATCH] fix Signed-off-by: Alexandr Stefurishin --- hooks/convert_bd_names_to_selector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/convert_bd_names_to_selector.py b/hooks/convert_bd_names_to_selector.py index df04a8bd..cd2aa81b 100755 --- a/hooks/convert_bd_names_to_selector.py +++ b/hooks/convert_bd_names_to_selector.py @@ -259,8 +259,9 @@ def main(ctx: hook.Context): } if 'labels' in lvg['metadata']: lvg_backup['metadata']['labels'] = lvg['metadata']['labels'] + default_finalizer = 'storage.deckhouse.io/sds-node-configurator' if default_finalizer not in lvg_backup['metadata']['finalizers']: - lvg_backup['metadata']['finalizers'].append('storage.deckhouse.io/sds-node-configurator') + lvg_backup['metadata']['finalizers'].append(default_finalizer) lvg_backup['metadata']['labels']['kubernetes.io/hostname'] = lvg['status']['nodes'][0]['name'] lvg_backup['metadata']['labels'][migration_completed_label] = 'false'