Skip to content

Commit

Permalink
Final test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Dec 19, 2023
1 parent e17c5c0 commit e16c575
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/reconciliation/construct_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e16c575

Please sign in to comment.