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