Skip to content

Commit

Permalink
Fix updateSelector comp type
Browse files Browse the repository at this point in the history
  • Loading branch information
l0kix2 committed Dec 13, 2024
1 parent 6748cc7 commit 31e13bd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions controllers/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,14 @@ func chooseUpdateFlow(spec ytv1.YtsaurusSpec, needUpdate []components.Component)
needFullUpdate := false

for _, comp := range needUpdate {
component := comp.GetType()
if canUpdateComponent(configuredSelector, component) {
canUpdate = append(canUpdate, string(component))
componentType := comp.GetType()
componentName := comp.GetName()
if canUpdateComponent(configuredSelector, componentType) {
canUpdate = append(canUpdate, componentName)
} else {
cannotUpdate = append(cannotUpdate, string(component))
cannotUpdate = append(cannotUpdate, componentName)
}
if !canUpdateComponent(ytv1.UpdateSelectorStatelessOnly, component) && component != consts.DataNodeType {
if !canUpdateComponent(ytv1.UpdateSelectorStatelessOnly, componentType) && componentType != consts.DataNodeType {
needFullUpdate = true
}
}
Expand Down

0 comments on commit 31e13bd

Please sign in to comment.