update component name
@@ -954,6 +954,7 @@ func (r *ComponentReconcilerTask) ReconcileStatefulSet(
},
Spec: appsV1.StatefulSetSpec{
Template: *spec,
+ ServiceName: getNameForHeadlessService(r.component.Name),
Selector: &metaV1.LabelSelector{
MatchLabels: labelMap,
},
