Skip to content

Commit

Permalink
hook improves
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Kramarenko <[email protected]>
  • Loading branch information
ViktorKram committed Sep 5, 2024
1 parent ea4ea5c commit d6f7eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/convert_bd_names_to_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def configure_new_lvg(backup):


def turn_on_daemonset(api_v1, name, namespace, daemonset):
del daemonset['spec']['template']['spec']['nodeSelector']['exclude']
_ = daemonset.spec.template.spec.node_selector.pop('exclude')
try:
api_v1.patch_namespaced_daemon_set(name=name, namespace=namespace, body=daemonset)
print(f"{migrate_script} successfully migrated LvmVolumeGroup kind to LVMVolumeGroup")
Expand Down

0 comments on commit d6f7eb1

Please sign in to comment.