Skip to content

Commit

Permalink
Check if custom certs are enabled before use service cert
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
  • Loading branch information
rubenvp8510 committed Jul 11, 2024
1 parent 75de22c commit e4e890d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/manifests/distributor/distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func BuildDistributor(params manifestutils.Params) ([]client.Object, error) {
objects := []client.Object{dep, distributorService}

if tempo.Spec.Template.Distributor.TLS.Enabled {
if params.CtrlConfig.Gates.OpenShift.ServingCertsService {
if params.CtrlConfig.Gates.OpenShift.ServingCertsService && tempo.Spec.Template.Distributor.TLS.CA == "" &&
tempo.Spec.Template.Distributor.TLS.Cert == "" {
caSecretName := naming.ServingCABundleName(tempo.Name)
certSecretName := naming.ServingCertName(manifestutils.DistributorComponentName, tempo.Name)
err = configureReceiversTLS(dep, caSecretName, certSecretName)
Expand Down

0 comments on commit e4e890d

Please sign in to comment.