diff options
| author | gy95 <guoyao17@huawei.com> | 2022-04-22 17:00:37 +0800 |
|---|---|---|
| committer | gy95 <guoyao17@huawei.com> | 2022-09-22 14:44:06 +0800 |
| commit | d887c7c416f3f38ec4b69241229289fe62ba1bbf (patch) | |
| tree | e61fa01a5144b524861a99ed5d3dae500541e221 /common/types | |
| parent | Merge pull request #4125 from wackxu/fixdeletetermin (diff) | |
| download | kubeedge-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.go | 20 |
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 +} |
