mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Fix golint warning
This commit is contained in:
parent
f52e7ef4bf
commit
cf80186a6c
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ func CreatePodTemplate(template v1.PodTemplateSpec, generation *int64, hash stri
|
|||
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(pod *v1.Pod, hash string, dsTemplateGeneration *int64) bool {
|
||||
// Compare with hash to see if the pod is updated, need to maintain backward compatibility of templateGeneration
|
||||
templateMatches := dsTemplateGeneration != nil &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue