use pointer type for nodeAffinity (#1263)

* use pointer type for nodeAffinity
This commit is contained in:
Felix Kunde
2020-12-18 12:07:59 +01:00
committed by GitHub
parent a63ad49ef8
commit 07c4f52ede
6 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -1223,7 +1223,7 @@ func (c *Cluster) generateStatefulSet(spec *acidv1.PostgresSpec) (*appsv1.Statef
effectiveRunAsUser,
effectiveRunAsGroup,
effectiveFSGroup,
nodeAffinity(c.OpConfig.NodeReadinessLabel, &spec.NodeAffinity),
nodeAffinity(c.OpConfig.NodeReadinessLabel, spec.NodeAffinity),
spec.SchedulerName,
int64(c.OpConfig.PodTerminateGracePeriod.Seconds()),
c.OpConfig.PodServiceAccountName,