We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e005f commit f97c665Copy full SHA for f97c665
pkg/cluster/connection_pooler.go
@@ -402,6 +402,12 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
402
},
403
}
404
405
+ if spec.TLS != nil && spec.TLS.SecretName != "" && spec.SpiloFSGroup != nil {
406
+ podTemplate.Spec.SecurityContext = &v1.PodSecurityContext{
407
+ FSGroup: spec.SpiloFSGroup,
408
+ }
409
410
+
411
nodeAffinity := c.nodeAffinity(c.OpConfig.NodeReadinessLabel, spec.NodeAffinity)
412
if c.OpConfig.EnablePodAntiAffinity {
413
labelsSet := labels.Set(c.connectionPoolerLabels(role, false).MatchLabels)
0 commit comments