From e16c57543c3d1b96aada11ca43eeab2703fd0d4b Mon Sep 17 00:00:00 2001 From: Miles-Garnsey Date: Tue, 19 Dec 2023 17:31:38 +1100 Subject: [PATCH] Final test fixes. --- pkg/reconciliation/construct_service.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/reconciliation/construct_service.go b/pkg/reconciliation/construct_service.go index 79d5b628..9319f9cd 100644 --- a/pkg/reconciliation/construct_service.go +++ b/pkg/reconciliation/construct_service.go @@ -70,6 +70,9 @@ func newServiceForCassandraDatacenter(dc *api.CassandraDatacenter) *corev1.Servi } service.Spec.Ports = ports + anns := make(map[string]string) + oplabels.AddOperatorAnnotations(anns, dc) + service.ObjectMeta.Annotations = anns addAdditionalOptions(service, &dc.Spec.AdditionalServiceConfig.DatacenterService) @@ -301,7 +304,7 @@ func makeGenericHeadlessService(dc *api.CassandraDatacenter) *corev1.Service { service.Spec.Type = "ClusterIP" service.Spec.ClusterIP = "None" - anns := dc.GetAnnotations() + anns := make(map[string]string) oplabels.AddOperatorAnnotations(anns, dc) service.ObjectMeta.Annotations = anns