Skip to content

Commit

Permalink
fix pod create failed with pd
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdsteelRail committed Sep 29, 2024
1 parent d3d15f2 commit e9d02ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controllers/collaset/synccontrol/sync_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,11 @@ func decideContextRevision(contextDetail *appsv1alpha1.ContextDetail, updatedRev
if contextDetail.Contains(podcontext.JustCreateContextDataKey, "true") {
// TODO choose just create pods' revision according to scaleStrategy
contextDetail.Put(podcontext.RevisionContextDataKey, updatedRevision.Name)
delete(contextDetail.Data, podcontext.PodDecorationRevisionKey)
needUpdateContext = true
} else if contextDetail.Contains(podcontext.RecreateUpdateContextDataKey, "true") {
contextDetail.Put(podcontext.RevisionContextDataKey, updatedRevision.Name)
delete(contextDetail.Data, podcontext.PodDecorationRevisionKey)
needUpdateContext = true
}
// if pod is delete and recreate, never change revisionKey
Expand Down

0 comments on commit e9d02ef

Please sign in to comment.