apiVersion: v1
kind: Service
metadata:
  name: lifecycle-operator-metrics-service
  namespace: {{ .Release.Namespace | quote }}
  {{- $annotations := include "common.annotations" (dict "context" .) }}
  {{- with $annotations }}
  annotations: {{- . -}}
  {{- end }}
  labels:
    control-plane: lifecycle-operator
{{- include "common.labels.standard" ( dict "context" . ) | nindent 4 }}
spec:
  type: {{ .Values.operatorMetricsService.type }}
  selector:
    control-plane: lifecycle-operator
  {{- include "common.selectorLabels"  ( dict "context" . )  | nindent 4 }}
  ports:
	{{- .Values.operatorMetricsService.ports | toYaml | nindent 2 -}}