@@ -1085,6 +1085,8 @@ func (r *ShardedClusterReconcileHelper) doShardedClusterProcessing(ctx context.C
1085
1085
}
1086
1086
1087
1087
agentCertSecretSelector := sc .GetSecurity ().AgentClientCertificateSecretName (sc .Name )
1088
+ // TODO: Add a key
1089
+ // TODO: Make sc.GetSecurity().AgentClientCertificateSecretName(sc.Name) return only name
1088
1090
1089
1091
opts = deploymentOptions {
1090
1092
podEnvVars : podEnvVars ,
@@ -2281,6 +2283,7 @@ func (r *ShardedClusterReconcileHelper) getConfigServerOptions(ctx context.Conte
2281
2283
PodEnvVars (opts .podEnvVars ),
2282
2284
CurrentAgentAuthMechanism (opts .currentAgentAuthMode ),
2283
2285
CertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , certSecretName , databaseSecretPath , log )),
2286
+ // TODO: Check if it is necessary. Can we just use opts?
2284
2287
AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretSelector .Name , databaseSecretPath , log )),
2285
2288
InternalClusterHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , internalClusterSecretName , databaseSecretPath , log )),
2286
2289
PrometheusTLSCertHash (opts .prometheusCertHash ),
@@ -2313,6 +2316,7 @@ func (r *ShardedClusterReconcileHelper) getMongosOptions(ctx context.Context, sc
2313
2316
PodEnvVars (opts .podEnvVars ),
2314
2317
CurrentAgentAuthMechanism (opts .currentAgentAuthMode ),
2315
2318
CertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , certSecretName , vaultConfig .DatabaseSecretPath , log )),
2319
+ // TODO: Check if it is necessary. Can we just use opts?
2316
2320
AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretSelector .Name , vaultConfig .DatabaseSecretPath , log )),
2317
2321
InternalClusterHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , internalClusterSecretName , vaultConfig .DatabaseSecretPath , log )),
2318
2322
PrometheusTLSCertHash (opts .prometheusCertHash ),
@@ -2344,6 +2348,7 @@ func (r *ShardedClusterReconcileHelper) getShardOptions(ctx context.Context, sc
2344
2348
PodEnvVars (opts .podEnvVars ),
2345
2349
CurrentAgentAuthMechanism (opts .currentAgentAuthMode ),
2346
2350
CertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , certSecretName , databaseSecretPath , log )),
2351
+ // TODO: Check if it is necessary. Can we just use opts?
2347
2352
AgentCertificateHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , opts .agentCertSecretSelector .Name , databaseSecretPath , log )),
2348
2353
InternalClusterHash (enterprisepem .ReadHashFromSecret (ctx , r .commonController .SecretClient , sc .Namespace , internalClusterSecretName , databaseSecretPath , log )),
2349
2354
PrometheusTLSCertHash (opts .prometheusCertHash ),
0 commit comments