@@ -30,6 +30,7 @@ import (
3030 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3131 "k8s.io/apimachinery/pkg/util/intstr"
3232
33+ memcachedv1 "github.com/openstack-k8s-operators/infra-operator/apis/memcached/v1beta1"
3334 topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
3435 telemetryv1 "github.com/openstack-k8s-operators/telemetry-operator/api/v1beta1"
3536)
@@ -45,6 +46,7 @@ func AodhStatefulSet(
4546 configHash string ,
4647 labels map [string ]string ,
4748 topology * topologyv1.Topology ,
49+ memcached * memcachedv1.Memcached ,
4850) (* appsv1.StatefulSet , error ) {
4951 runAsUser := int64 (0 )
5052
@@ -100,6 +102,12 @@ func AodhStatefulSet(
100102 evaluatorVolumeMounts = append (evaluatorVolumeMounts , getCustomPrometheusCaVolumeMount (instance .Spec .PrometheusTLSCaCertSecret .Key ))
101103 }
102104
105+ // add MTLS cert if defined
106+ if memcached .GetMemcachedMTLSSecret () != "" {
107+ volumes = append (volumes , memcached .CreateMTLSVolume ())
108+ apiVolumeMounts = append (apiVolumeMounts , memcached .CreateMTLSVolumeMounts (nil , nil )... )
109+ }
110+
103111 for _ , endpt := range []service.Endpoint {service .EndpointInternal , service .EndpointPublic } {
104112 if instance .Spec .Aodh .TLS .API .Enabled (endpt ) {
105113 var tlsEndptCfg tls.GenericService
0 commit comments