@@ -1950,6 +1950,7 @@ func (r *ShardedClusterReconcileHelper) publishDeployment(ctx context.Context, c
1950
1950
1951
1951
logDiffOfProcessNames (opts .processNames , healthyProcessesToWaitForReadyState , log .With ("ctx" , "updateOmAuthentication" ))
1952
1952
1953
+ // TODO: Check if opts.agentCertSecretSelector is correct here. It is non-pem suffixed secret name.
1953
1954
workflowStatus , additionalReconciliationRequired := r .commonController .updateOmAuthentication (ctx , conn , healthyProcessesToWaitForReadyState , sc , opts .agentCertSecretSelector , opts .caFilePath , "" , isRecovering , log )
1954
1955
if ! workflowStatus .IsOK () {
1955
1956
if ! isRecovering {
@@ -2280,7 +2281,7 @@ func (r *ShardedClusterReconcileHelper) getConfigServerOptions(ctx context.Conte
2280
2281
PodEnvVars (opts .podEnvVars ),
2281
2282
CurrentAgentAuthMechanism (opts .currentAgentAuthMode ),
2282
2283
CertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , certSecretName , databaseSecretPath , log )),
2283
- AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretName , databaseSecretPath , log )),
2284
+ AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretSelector . Name , databaseSecretPath , log )),
2284
2285
InternalClusterHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , internalClusterSecretName , databaseSecretPath , log )),
2285
2286
PrometheusTLSCertHash (opts .prometheusCertHash ),
2286
2287
WithVaultConfig (vaultConfig ),
@@ -2312,7 +2313,7 @@ func (r *ShardedClusterReconcileHelper) getMongosOptions(ctx context.Context, sc
2312
2313
PodEnvVars (opts .podEnvVars ),
2313
2314
CurrentAgentAuthMechanism (opts .currentAgentAuthMode ),
2314
2315
CertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , certSecretName , vaultConfig .DatabaseSecretPath , log )),
2315
- AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretName , vaultConfig .DatabaseSecretPath , log )),
2316
+ AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretSelector . Name , vaultConfig .DatabaseSecretPath , log )),
2316
2317
InternalClusterHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , internalClusterSecretName , vaultConfig .DatabaseSecretPath , log )),
2317
2318
PrometheusTLSCertHash (opts .prometheusCertHash ),
2318
2319
WithVaultConfig (vaultConfig ),
@@ -2343,7 +2344,7 @@ func (r *ShardedClusterReconcileHelper) getShardOptions(ctx context.Context, sc
2343
2344
PodEnvVars (opts .podEnvVars ),
2344
2345
CurrentAgentAuthMechanism (opts .currentAgentAuthMode ),
2345
2346
CertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , certSecretName , databaseSecretPath , log )),
2346
- AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretName , databaseSecretPath , log )),
2347
+ AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretSelector . Name , databaseSecretPath , log )),
2347
2348
InternalClusterHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , internalClusterSecretName , databaseSecretPath , log )),
2348
2349
PrometheusTLSCertHash (opts .prometheusCertHash ),
2349
2350
WithVaultConfig (vaultConfig ),
0 commit comments