Skip to content

Commit 18eda43

Browse files
Remove LKE cluster validation as individual Linodes can now be locked/unlocked irrespective of LKE association.
1 parent a4f19d8 commit 18eda43

File tree

1 file changed

+0
-11
lines changed
  • packages/manager/src/mocks/presets/crud/handlers

1 file changed

+0
-11
lines changed

packages/manager/src/mocks/presets/crud/handlers/locks.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ const validateLockCreation = async (
6969
return { reason: 'The specified entity could not be found.' };
7070
}
7171

72-
// Check if Linode belongs to an LKE cluster
73-
if (entity_type === 'linode' && entity) {
74-
const linodeEntity = entity as { lke_cluster_id?: null | number };
75-
if (linodeEntity.lke_cluster_id) {
76-
return {
77-
field: 'entity_id',
78-
reason: 'Linode belongs to an LKE Cluster',
79-
};
80-
}
81-
}
82-
8372
// Check if entity already has a lock of conflicting type
8473
const existingLocks = await mswDB.getAll('locks');
8574
if (existingLocks) {

0 commit comments

Comments
 (0)