Closed shreyas-badiger closed 8 months ago
Attention: 33 lines
in your changes are missing coverage. Please review.
Comparison is base (
1201813
) 39.09% compared to head (5c6287d
) 43.75%.
Files | Patch % | Lines |
---|---|---|
controllers/upgrade.go | 37.77% | 26 Missing and 2 partials :warning: |
controllers/rollingupgrade_controller.go | 0.00% | 5 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Currently, upgrade-manager supports 2 different strategies: Eager mode - Eagerly wait for replacement nodes and only then drain & terminate the previous instances. Lazy mode - Rotate (drain and terminate) the desired number of nodes without waiting for the replacement nodes.
In these two strategies, we cordon only the nodes that are in the current batch (batch size is determined by maxUnavailable mentioned in the RollingUpgrade CR. By default maxUnavailable=1)
While the upgrade is in progress, the remaining older nodes that are not yet considered in the node-rotation batch, might have newer deployments / pods scheduled.
These newly scheduled pods could have yet another restart when the underlying older nodes are considered for rotation. There is also an added time for draining these nodes with additional new pods.
With the approach in PR, we will cordon all the nodes in the respective IG when a rollingUpgrade CR is being processed. The newer pods will always scheduled on newer nodes when an upgrade is in progress.