Skip to content

Commit

Permalink
feat: label service
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Jul 21, 2021
1 parent d9cc52a commit e5face5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manager/controllers/step_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ func (r *StepReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
Namespace: step.Namespace,
Name: serviceName,
OwnerReferences: ownerReferences,
// useful for auto-detecting the service as exporting Prometheus
Labels: map[string]string{
dfv1.KeyStepName: stepName,
dfv1.KeyPipelineName: pipelineName,
},
},
Spec: corev1.ServiceSpec{
Ports: []corev1.ServicePort{
Expand Down

0 comments on commit e5face5

Please sign in to comment.