Skip to content

Commit

Permalink
fix: add step to install extension when add node (#683)
Browse files Browse the repository at this point in the history
Signed-off-by: lixd <xueduan.li@gmail.com>
Co-authored-by: lixd <xueduan.li@gmail.com>
  • Loading branch information
kubeclipper-bot and lixd committed Oct 28, 2023
1 parent 4276329 commit ec091b0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/clusteroperation/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ func (p *PatchNodes) makeWorkerOperation(extra component.ExtraMetadata, cluster
}
op.Steps = append(op.Steps, steps...)

// k8s-extension
ext := k8s.Extension{}
steps, err = ext.InitStepper(cluster).InstallSteps(stepNodes)
if err != nil {
return nil, err
}
op.Steps = append(op.Steps, steps...)

// kubernetes
steps, err = p.getPackageSteps(cluster, action, stepNodes)
if err != nil {
Expand Down Expand Up @@ -203,6 +211,14 @@ func (p *PatchNodes) makeWorkerOperation(extra component.ExtraMetadata, cluster
}
op.Steps = append(op.Steps, steps...)

// k8s-extension
ext := k8s.Extension{}
steps, err = ext.InitStepper(cluster).UninstallSteps(stepNodes)
if err != nil {
return nil, err
}
op.Steps = append(op.Steps, steps...)

// container runtime
steps, err = getCriStep(ctx, cluster, action, stepNodes)
if err != nil {
Expand Down

0 comments on commit ec091b0

Please sign in to comment.