Skip to content

Commit 628815d

Browse files
committed
fix
1 parent 114a057 commit 628815d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

internal/controller/postgrescluster/pgbouncer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (r *Reconciler) reconcilePGBouncer(
4545
secret, err = r.reconcilePGBouncerSecret(ctx, cluster, root, service)
4646
}
4747
if err == nil {
48-
logfile := setPGBouncerLogfile(ctx, cluster)
48+
logfile := setPGBouncerLogfile(cluster)
4949
config := collector.NewConfigForPgBouncerPod(ctx, cluster, pgbouncer.PostgresqlUser, logfile)
5050
configmap, err = r.reconcilePGBouncerConfigMap(ctx, cluster, config, logfile)
5151
}
@@ -65,7 +65,7 @@ func (r *Reconciler) reconcilePGBouncer(
6565
// If not present, set to the OTEL default.
6666
// If OTEL is not enabled, we do not use this value.
6767
// TODO: Check INI config files specified on the cluster
68-
func setPGBouncerLogfile(ctx context.Context, cluster *v1beta1.PostgresCluster) string {
68+
func setPGBouncerLogfile(cluster *v1beta1.PostgresCluster) string {
6969
logfile := naming.PGBouncerFullLogPath
7070

7171
if dest, ok := cluster.Spec.Proxy.PGBouncer.Config.Global["logfile"]; ok {

internal/util/pod_security_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ supplementalGroups:
3939

4040
assert.Assert(t, cmp.MarshalMatches(PodSecurityContext(ctx, 2, supplementalGroups), `
4141
fsGroupChangePolicy: OnRootMismatch
42-
`))
43-
44-
assert.Assert(t, cmp.MarshalMatches(PodSecurityContext(ctx, 2, supplementalGroups), `
45-
fsGroupChangePolicy: OnRootMismatch
4642
supplementalGroups:
4743
- 3
4844
- 4

0 commit comments

Comments
 (0)