apiVersion: v1
kind: Service
metadata:
  name: {{ include "cert-manager-webhook-pcloud.fullname" . }}
  namespace: {{ .Values.certManager.namespace | quote }}
  labels:
    app: {{ include "cert-manager-webhook-pcloud.name" . }}
    chart: {{ include "cert-manager-webhook-pcloud.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - port: {{ .Values.service.port }}
      targetPort: https
      protocol: TCP
      name: https
  selector:
    app: {{ include "cert-manager-webhook-pcloud.name" . }}
    release: {{ .Release.Name }}