summaryrefslogtreecommitdiff
path: root/common/types
diff options
context:
space:
mode:
authorgy95 <guoyao17@huawei.com>2022-04-22 17:00:37 +0800
committergy95 <guoyao17@huawei.com>2022-09-22 14:44:06 +0800
commitd887c7c416f3f38ec4b69241229289fe62ba1bbf (patch)
treee61fa01a5144b524861a99ed5d3dae500541e221 /common/types
parentMerge pull request #4125 from wackxu/fixdeletetermin (diff)
downloadkubeedge-d887c7c416f3f38ec4b69241229289fe62ba1bbf.tar.gz
support operations: upgrade edge node from cloud
Signed-off-by: gy95 <guoyao17@huawei.com>
Diffstat (limited to 'common/types')
-rw-r--r--common/types/types.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/types/types.go b/common/types/types.go
index 61fa79272..be5745d1f 100644
--- a/common/types/types.go
+++ b/common/types/types.go
@@ -26,3 +26,23 @@ type NodeStatusRequest struct {
Status v1.NodeStatus
ExtendResources map[v1.ResourceName][]ExtendResource
}
+
+// NodeUpgradeJobRequest is upgrade msg coming from cloud to edge
+type NodeUpgradeJobRequest struct {
+ UpgradeID string
+ HistoryID string
+ Version string
+ UpgradeTool string
+ Image string
+}
+
+// NodeUpgradeJobResponse is used to report status msg to cloudhub https service
+type NodeUpgradeJobResponse struct {
+ UpgradeID string
+ HistoryID string
+ NodeName string
+ FromVersion string
+ ToVersion string
+ Status string
+ Reason string
+}