Skip to content

Commit 0c9905f

Browse files
Jonathan S. Katzjkatz
Jonathan S. Katz
authored andcommitted
Update comment around applying Tolerations
The comment was a bit confusing, likely as it was written in haste. It now more clearly states the meaning of the conditional and what it is for.
1 parent dccdb9d commit 0c9905f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/operator/cluster/cluster.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,10 @@ func UpdateTolerations(clientset kubeapi.Interface, cluster *crv1.Pgcluster, dep
642642
return err
643643
}
644644

645-
// if the instance does have specific tolerations, exit here as we do not
646-
// want to override them
645+
// "replica" instances can have toleration overrides. these get managed as
646+
// part of the pgreplicas controller, not here. as such, if this "replica"
647+
// instance has specific toleration overrides, we will exit here so we do not
648+
// apply the cluster-wide tolerations
647649
if len(instance.Spec.Tolerations) != 0 {
648650
return nil
649651
}

0 commit comments

Comments
 (0)