Skip to content

Commit

Permalink
fix daemonset pod updater pointer error (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
JameKeal committed Mar 29, 2023
1 parent 08bd281 commit 75719ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/daemonpodupdater/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func IsDaemonsetPodLatest(ds *appsv1.DaemonSet, pod *corev1.Pod) bool {
klog.V(5).Infof("daemonset %v revision hash is %v", ds.Name, hash)
klog.V(5).Infof("daemonset %v generation is %v", ds.Name, generation)

templateMatches := generation != nil && pod.Labels[extensions.DaemonSetTemplateGenerationKey] == fmt.Sprint(generation)
templateMatches := generation != nil && pod.Labels[extensions.DaemonSetTemplateGenerationKey] == fmt.Sprint(*generation)
hashMatches := len(hash) > 0 && pod.Labels[extensions.DefaultDaemonSetUniqueLabelKey] == hash
return hashMatches || templateMatches
}
Expand Down

0 comments on commit 75719ae

Please sign in to comment.