{{- if .Values.controlPlane.enabled }}
apiVersion: v1
kind: Service
metadata:
  name: {{ include "hindsight.fullname" . }}-control-plane
  labels:
    {{- include "hindsight.controlPlane.labels" . | nindent 4 }}
spec:
  type: {{ .Values.controlPlane.service.type }}
  ports:
  - port: {{ .Values.controlPlane.service.port }}
    targetPort: http
    protocol: TCP
    name: http
  selector:
    {{- include "hindsight.controlPlane.selectorLabels" . | nindent 4 }}
{{- end }}
