Skip to content

Commit

Permalink
fix none labels (#96)
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Kramarenko <[email protected]>
  • Loading branch information
ViktorKram authored Sep 26, 2024
1 parent 782bd30 commit 6815fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/convert_bd_names_to_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ def main(ctx: hook.Context):
'name':
lvg['metadata'][
'name'],
'labels':
lvg['metadata'][
'labels'],
'finalizers':
lvg['metadata'][
'finalizers']},
'spec': lvg['spec']}
if 'labels' in lvg['metadata']:
lvg_backup['metadata']['labels'] = lvg['metadata']['labels']

lvg_backup['metadata']['labels']['kubernetes.io/hostname'] = lvg['status']['nodes'][0]['name']
lvg_backup['metadata']['labels'][migration_completed_label] = 'false'
try:
Expand Down

0 comments on commit 6815fd9

Please sign in to comment.