Skip to content

Commit 6adfc06

Browse files
committed
Merge branch '3057-the-pod-anti-affinity-rules-are-applied-twice-for-sgcluster-s-pods' into 'main-1.17'
fix: The pod anti affinity rules are applied twice for SGCluster's Pods See merge request ongresinc/stackgres!1692
2 parents aa3c157 + 80995e6 commit 6adfc06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stackgres-k8s/src/operator/src/main/java/io/stackgres/operator/conciliation/factory/cluster/ClusterPodTemplateSpecFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public PodTemplateResult getPodTemplateSpec(ClusterContainerContext context) {
201201
.map(StackGresClusterPodsScheduling::getPodAntiAffinity)
202202
.map(PodAntiAffinityBuilder::new)
203203
.orElseGet(PodAntiAffinityBuilder::new)
204-
.addAllToRequiredDuringSchedulingIgnoredDuringExecution(Seq.of(
204+
.withRequiredDuringSchedulingIgnoredDuringExecution(Seq.of(
205205
new PodAffinityTermBuilder()
206206
.withLabelSelector(new LabelSelectorBuilder()
207207
.withMatchExpressions(new LabelSelectorRequirementBuilder()

0 commit comments

Comments
 (0)