apiVersion: v1
kind: Service
metadata:
  labels:
    {{- include "actions-runner-controller.labels" . | nindent 4 }}
  name: {{ include "actions-runner-controller.metricsServiceName" . }}
  namespace: {{ .Release.Namespace }}
  {{- with .Values.metrics.serviceAnnotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}
spec:
  ports:
  - name: metrics-port
    port: {{ .Values.metrics.port }}
    targetPort: metrics-port
  selector:
    {{- include "actions-runner-controller.selectorLabels" . | nindent 4 }}
