Skip to content

Commit

Permalink
Merge pull request #638 from cybozu-go/fix-to-call-addon-on-PhaseK8sM…
Browse files Browse the repository at this point in the history
…aintain

Fix to call addon on k8sMaintain phase
  • Loading branch information
terassyi authored Jun 28, 2023
2 parents 5ae3ee3 + ae8cd8c commit e72fa19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (c Controller) runOnce(ctx context.Context, leaderKey string, tick <-chan t

// Reflect sabakan machine status when CKE does not need to do
// anything except for rebooting nodes.
if c.addon != nil && phase == cke.PhaseRebootNodes {
if c.addon != nil && (phase == cke.PhaseRebootNodes || phase == cke.PhaseK8sMaintain) {
if err := c.addon.Do(ctx, leaderKey, status); err != nil {
return err
}
Expand Down

0 comments on commit e72fa19

Please sign in to comment.