Skip to content

Commit

Permalink
enhancement (CollaSet): backoff InPlaceOnly policy to InPlaceIfPossib…
Browse files Browse the repository at this point in the history
…le in case of using native K8s
  • Loading branch information
wu8685 committed Aug 15, 2023
1 parent 348f332 commit 7f68973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controllers/collaset/synccontrol/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ func newPodUpdater(cls *appsv1alpha1.CollaSet) PodUpdater {
case appsv1alpha1.CollaSetRecreatePodUpdateStrategyType:
return &RecreatePodUpdater{}
case appsv1alpha1.CollaSetInPlaceOnlyPodUpdateStrategyType:
return &InPlaceOnlyPodUpdater{}
// In case of using native K8s, Pod is only allowed to update with container image, so InPlaceOnly policy is
// implemented with InPlaceIfPossible policy as default for compatibility.
return &InPlaceIfPossibleUpdater{}
default:
return &InPlaceIfPossibleUpdater{}
}
Expand Down

0 comments on commit 7f68973

Please sign in to comment.