Skip to content

Commit 1cd77ba

Browse files
committed
RedisReplication: Add additional headless service annotations.
Signed-off-by: Ami Mahloof <[email protected]>
1 parent 1cc6cf1 commit 1cd77ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/k8sutils/redis-replication.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ func CreateReplicationService(ctx context.Context, cr *rrvb2.RedisReplication, c
2727

2828
annotations := generateServiceAnots(cr.ObjectMeta, nil, epp)
2929
objectMetaInfo := generateObjectMetaInformation(cr.Name, cr.Namespace, labels, annotations)
30-
headlessObjectMetaInfo := generateObjectMetaInformation(cr.Name+"-headless", cr.Namespace, labels, annotations)
30+
headlessObjectMetaInfo := generateObjectMetaInformation(
31+
cr.Name+"-headless",
32+
cr.Namespace,
33+
labels,
34+
generateServiceAnots(cr.ObjectMeta, cr.Spec.KubernetesConfig.GetHeadlessServiceAnnotations(), epp),
35+
)
3136
additionalObjectMetaInfo := generateObjectMetaInformation(cr.Name+"-additional", cr.Namespace, labels, generateServiceAnots(cr.ObjectMeta, cr.Spec.KubernetesConfig.GetServiceAnnotations(), epp))
3237
masterLabels := util.MergeMap(
3338
labels, map[string]string{common.RedisRoleLabelKey: common.RedisRoleLabelMaster},

0 commit comments

Comments
 (0)