Deleting All Pod Data
In the one-click spare part replacement process, before the container configuration is restored, an interface is added to clear the pod data on the device, including the pod, container configuration, ConfigMap, and secret.
Message instance
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"resourceversion": "",
"sync": false
},
"route": {
"source": "controller",
"group": "resource",
"operation": "delete",
"resource": "websocket/pods_data"
},
"content": ""
}
Parameter description
The content is left empty. No option needs to be added. It is used only to instruct the system to delete all data.
Result returned
{
"header": {
"id": "",
"msg_id": "a7b997d2-3bd3-4f15-8249-d530d48aa5cc",
"parentId": "",
"parent_msg_id": "",
"timestamp": 1652222329765,
"version": "",
"resourceversion": "",
"isSync": false,
"sync": false,
"nodeId": "",
"peerInfo": {}
},
"router": {
"source": "",
"destination": "",
"option": "",
"resource": ""
},
"route": {
"source": "hardware",
"group": "hub",
"operation": "update",
"resource": "websocket/config_result"
},
"content": {
"percentage": "100%",
"reason": "",
"result": "success",
"topic": "pods_data"
}
}
Parent topic: Downstream Message Interfaces