Skip to content

Commit b8f098e

Browse files
committed
change pgbackrest jobs to readOnlyRootFilesystem:true
1 parent 03305a2 commit b8f098e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cluster/k8sres.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,6 +3327,9 @@ func (c *Cluster) generatePgbackrestJob(backup *cpov1.Pgbackrest, repo *cpov1.Re
33273327
nil,
33283328
)
33293329

3330+
// Patch securityContext - readOnlyRootFilesystem
3331+
pgbackrestContainer.SecurityContext.ReadOnlyRootFilesystem = util.True()
3332+
33303333
podAffinityTerm := v1.PodAffinityTerm{
33313334
LabelSelector: c.roleLabelsSelector(Master),
33323335
TopologyKey: "kubernetes.io/hostname",

0 commit comments

Comments
 (0)