Skip to content

Commit 166a3aa

Browse files
committed
fix: custom CA support for retention policies
Signed-off-by: Leonardo Cecchi <[email protected]>
1 parent bcfe1fd commit 166a3aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/cnpgi/instance/retention.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@ func (c *CatalogMaintenanceRunnable) maintenance(
109109
return nil
110110
}
111111

112-
env, err := barmanCredentials.EnvSetBackupCloudCredentials(
112+
env, err := barmanCredentials.EnvSetCloudCredentialsAndCertificates(
113113
ctx,
114114
c.Client,
115115
objectStore.Namespace,
116116
&objectStore.Spec.Configuration,
117-
common.MergeEnv(os.Environ(), common.GetRestoreCABundleEnv(&objectStore.Spec.Configuration)))
117+
os.Environ(),
118+
common.BuildCertificateFilePath(objectStore.Name),
119+
)
118120
if err != nil {
119121
contextLogger.Error(err, "while setting backup cloud credentials")
120122
return err

0 commit comments

Comments
 (0)