We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b396fd commit ce493a3Copy full SHA for ce493a3
1 file changed
scripts/migration/ray_cluster_migration.py
@@ -314,17 +314,16 @@ def _remove_pre_upgrade_backup_annotation(
314
plural="rayclusters",
315
name=name,
316
)
317
- annotations = dict(rc.get("metadata", {}).get("annotations") or {})
+ annotations = rc.get("metadata", {}).get("annotations") or {}
318
if PRE_UPGRADE_BACKUP_ANNOTATION not in annotations:
319
return
320
- del annotations[PRE_UPGRADE_BACKUP_ANNOTATION]
321
api_instance.patch_namespaced_custom_object(
322
group="ray.io",
323
version="v1",
324
namespace=namespace,
325
326
327
- body={"metadata": {"annotations": annotations}},
+ body={"metadata": {"annotations": {PRE_UPGRADE_BACKUP_ANNOTATION: None}}},
328
329
except Exception as e:
330
print(
0 commit comments