mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-12 05:33:11 +01:00
fix: custom CA support for retention policies
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
parent
78fe21b24d
commit
f15194ac80
@ -109,12 +109,14 @@ func (c *CatalogMaintenanceRunnable) maintenance(
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
env, err := barmanCredentials.EnvSetBackupCloudCredentials(
|
env, err := barmanCredentials.EnvSetCloudCredentialsAndCertificates(
|
||||||
ctx,
|
ctx,
|
||||||
c.Client,
|
c.Client,
|
||||||
objectStore.Namespace,
|
objectStore.Namespace,
|
||||||
&objectStore.Spec.Configuration,
|
&objectStore.Spec.Configuration,
|
||||||
common.MergeEnv(os.Environ(), common.GetRestoreCABundleEnv(&objectStore.Spec.Configuration)))
|
os.Environ(),
|
||||||
|
common.BuildCertificateFilePath(objectStore.Name),
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
contextLogger.Error(err, "while setting backup cloud credentials")
|
contextLogger.Error(err, "while setting backup cloud credentials")
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user