Skip to content

Commit 5c9432a

Browse files
committed
Fix missing secret for clone pgbackrest configuration mount
1 parent 491b8fc commit 5c9432a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/cluster/k8sres.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,12 @@ func (c *Cluster) generatePgbackrestCloneConfigVolumes(description *cpov1.CloneD
19731973
},
19741974
},
19751975
}
1976+
if description.Pgbackrest.Configuration.Secret != "" {
1977+
volumes[0].VolumeSource.Secret = &v1.SecretVolumeSource{
1978+
SecretName: description.Pgbackrest.Configuration.Secret,
1979+
DefaultMode: &defaultMode,
1980+
}
1981+
}
19761982

19771983
if description.Pgbackrest.Repo.Storage == "pvc" && description.ClusterName != "" {
19781984
// Cloning from another cluster, mount that clusters certs

0 commit comments

Comments
 (0)