Skip to content

Commit a890e07

Browse files
author
Jonathan S. Katz
committed
Use SupplementalGroups from BackrestStorage for pgBackRest repository
The code was using the SupplementalGroups from the PrimaryStorage attribute on the CRD, which may have gone unnoticed for awhile for a host of reasons.
1 parent a169a29 commit a890e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/backrest/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func CreateRepoDeployment(clientset *kubernetes.Clientset, namespace string, clu
115115
PgbackrestS3EnvVars: operator.GetPgbackrestS3EnvVars(*cluster, clientset, namespace),
116116
Name: serviceName,
117117
ClusterName: cluster.Name,
118-
SecurityContext: util.GetPodSecurityContext(cluster.Spec.PrimaryStorage.GetSupplementalGroups()),
118+
SecurityContext: util.GetPodSecurityContext(cluster.Spec.BackrestStorage.GetSupplementalGroups()),
119119
PodAntiAffinity: operator.GetPodAntiAffinity(cluster,
120120
crv1.PodAntiAffinityDeploymentPgBackRest, cluster.Spec.PodAntiAffinity.PgBackRest),
121121
PodAntiAffinityLabelName: config.LABEL_POD_ANTI_AFFINITY,

0 commit comments

Comments
 (0)