mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-03-23 10:53:30 -04:00
updated already contains the right value, so we can just return it
This commit is contained in:
parent
fa50d19600
commit
ae50b3c287
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ func AddOrUpdateTolerationInPodSpec(spec *v1.PodSpec, toleration *v1.Toleration)
|
|||
for i := range podTolerations {
|
||||
if toleration.MatchToleration(&podTolerations[i]) {
|
||||
if helper.Semantic.DeepEqual(*toleration, podTolerations[i]) {
|
||||
return false
|
||||
return updated
|
||||
}
|
||||
newTolerations = append(newTolerations, *toleration)
|
||||
updated = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue