diff options
| author | WillardHu <wei.hu@daocloud.io> | 2024-01-17 18:08:01 +0800 |
|---|---|---|
| committer | WillardHu <wei.hu@daocloud.io> | 2024-01-18 17:25:40 +0800 |
| commit | 8bd1c1b4b2cb795131357eae68ca6ac0f96684da (patch) | |
| tree | 6cbeeb009e514001899d9958a10de57fc16776bc /edge | |
| parent | Construction of cloudcore upgrading capability (diff) | |
| download | kubeedge-8bd1c1b4b2cb795131357eae68ca6ac0f96684da.tar.gz | |
Modify the command for upgrading edgenode
Signed-off-by: WillardHu <wei.hu@daocloud.io>
Diffstat (limited to 'edge')
| -rw-r--r-- | edge/pkg/edgehub/task/taskexecutor/node_upgrade.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edge/pkg/edgehub/task/taskexecutor/node_upgrade.go b/edge/pkg/edgehub/task/taskexecutor/node_upgrade.go index 8546ab96d..dacdb5f72 100644 --- a/edge/pkg/edgehub/task/taskexecutor/node_upgrade.go +++ b/edge/pkg/edgehub/task/taskexecutor/node_upgrade.go @@ -129,7 +129,7 @@ func upgrade(taskReq types.NodeTaskRequest) (event fsm.Event) { func keadmUpgrade(upgradeReq commontypes.NodeUpgradeJobRequest, opts *options.EdgeCoreOptions) error { klog.Infof("Begin to run upgrade command") - upgradeCmd := fmt.Sprintf("keadm upgrade --upgradeID %s --historyID %s --fromVersion %s --toVersion %s --config %s --image %s > /tmp/keadm.log 2>&1", + upgradeCmd := fmt.Sprintf("keadm upgrade edge --upgradeID %s --historyID %s --fromVersion %s --toVersion %s --config %s --image %s > /tmp/keadm.log 2>&1", upgradeReq.UpgradeID, upgradeReq.HistoryID, version.Get(), upgradeReq.Version, opts.ConfigFile, upgradeReq.Image) // run upgrade cmd to upgrade edge node |
