Remove unnecessary len check.
This commit is contained in:
parent
3a8fc1b259
commit
8a0f3895c4
|
|
@ -885,9 +885,7 @@ func (c *Cluster) generatePodTemplate(
|
|||
podSpec.PriorityClassName = priorityClassName
|
||||
}
|
||||
|
||||
if len(topologySpreadConstraintsSpec) > 0 {
|
||||
podSpec.TopologySpreadConstraints = generateTopologySpreadConstraints(labels, topologySpreadConstraintsSpec)
|
||||
}
|
||||
|
||||
if sharePgSocketWithSidecars != nil && *sharePgSocketWithSidecars {
|
||||
addVarRunVolume(&podSpec)
|
||||
|
|
|
|||
Loading…
Reference in New Issue