Skip to content

Commit 04f8519

Browse files
committed
cleanup old code
1 parent a7fee6f commit 04f8519

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pkg/cluster/k8sres.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,17 +1465,7 @@ func (c *Cluster) generateStatefulSet(spec *cpov1.PostgresSpec) (*appsv1.Statefu
14651465
}
14661466
additionalVolumes = append(additionalVolumes, tlsVolumes...)
14671467
}
1468-
// if monitoring is enabled, add a empty volume
1469-
// if c.Postgresql.Spec.Monitoring != nil {
1470-
// additionalVolumes = append(additionalVolumes, cpov1.AdditionalVolume{
1471-
// Name: "exporter-tmp",
1472-
// MountPath: "/tmp",
1473-
// VolumeSource: v1.VolumeSource{
1474-
// EmptyDir: &v1.EmptyDirVolumeSource{},
1475-
// },
1476-
// TargetContainers: []string{"postgres-exporter"},
1477-
// })
1478-
// }
1468+
14791469
repo_host_mode := false
14801470
// Add this envVar so that it is not added to the pgbackrest initcontainer
14811471
if specHasPgbackrestPVCRepo(spec) {

0 commit comments

Comments
 (0)