mirror of
https://github.com/labring/sealos.git
synced 2026-10-30 18:09:56 +08:00
refactor(kubepanel): try remove kubepanel's metadata.managedFields. (#6076)
Try fix kubepanel metadata.managedFields removal.
This commit is contained in:
@@ -9,5 +9,11 @@ export function dumpKubeObject<K extends KubeObject = KubeObject>(obj: PartialDe
|
||||
objWithoutFunction[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Remove managedFields from metadata if it exists
|
||||
if (objWithoutFunction.metadata && objWithoutFunction.metadata.managedFields) {
|
||||
delete objWithoutFunction.metadata.managedFields;
|
||||
}
|
||||
|
||||
return dump(objWithoutFunction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user