Skip to content

Commit

Permalink
Merge pull request #224 from stuggi/add_endpopint_label
Browse files Browse the repository at this point in the history
add public endpoint label on the service
  • Loading branch information
openshift-merge-robot authored Sep 29, 2023
2 parents e0a30ad + 2b97c45 commit d4e895a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/horizon_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ func (r *HorizonReconciler) reconcileInit(
return ctrl.Result{}, err
}

svc.AddAnnotation(map[string]string{
service.AnnotationEndpointKey: string(service.EndpointPublic),
})

// add Annotation to whether creating an ingress is required or not
if svc.GetServiceType() == corev1.ServiceTypeClusterIP {
svc.AddAnnotation(map[string]string{
Expand Down

0 comments on commit d4e895a

Please sign in to comment.