Skip to content

Commit 965bb77

Browse files
committed
fix: deduplicating projections
Signed-off-by: Marco Nenciarini <[email protected]>
1 parent d379fdf commit 965bb77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/cnpgi/operator/lifecycle_certificates.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ func (impl LifecycleImplementation) collectAdditionalCertificates(
3737
result = append(result, envs...)
3838
}
3939

40-
if len(pluginConfiguration.RecoveryBarmanObjectName) > 0 {
40+
if len(pluginConfiguration.RecoveryBarmanObjectName) > 0 &&
41+
pluginConfiguration.RecoveryBarmanObjectName != pluginConfiguration.BarmanObjectName {
4142
envs, err := impl.collectObjectStoreCertificates(
4243
ctx,
4344
types.NamespacedName{

0 commit comments

Comments
 (0)