fix golint warnings in daemon controller

The only on remaining asks to rename DaemonSetsController, which is a
public interface and would need proper deprecation first.
This commit is contained in:
dmathieu
2018-02-05 10:11:09 +01:00
committed by dmathieu
parent 68da45623f
commit dadce343be
4 changed files with 13 additions and 9 deletions

View File

@@ -94,7 +94,7 @@ func CreatePodTemplate(template v1.PodTemplateSpec, generation int64, hash strin
return newTemplate
}
// IsPodUpdate checks if pod contains label value that either matches templateGeneration or hash
// IsPodUpdated checks if pod contains label value that either matches templateGeneration or hash
func IsPodUpdated(dsTemplateGeneration int64, pod *v1.Pod, hash string) bool {
// Compare with hash to see if the pod is updated, need to maintain backward compatibility of templateGeneration
templateMatches := pod.Labels[extensions.DaemonSetTemplateGenerationKey] == fmt.Sprint(dsTemplateGeneration)