Skip to content

Commit

Permalink
fix: bug of yurtappset always the last tweaks make effect (#2243)
Browse files Browse the repository at this point in the history
Signed-off-by: vie-serendipity <[email protected]>
(cherry picked from commit b099092)

Co-authored-by: vie-serendipity <[email protected]>
  • Loading branch information
github-actions[bot] and vie-serendipity authored Jan 4, 2025
1 parent 0e21879 commit 67618e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ func GetNodePoolTweaksFromYurtAppSet(cli client.Client, nodepoolName string, yas
for _, yasTweak := range yas.Spec.Workload.WorkloadTweaks {
if isNodePoolRelated(&np, yasTweak.Pools, yasTweak.NodePoolSelector) {
klog.V(4).Infof("nodepool %s is related to yurtappset %s/%s, add tweaks", nodepoolName, yas.Namespace, yas.Name)
tweaksList = append(tweaksList, &yasTweak.Tweaks)
tweaksCopy := yasTweak.Tweaks
tweaksList = append(tweaksList, &tweaksCopy)
}
}
return
Expand Down

0 comments on commit 67618e0

Please sign in to comment.