apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  name: v1alpha1.{{ .Values.apiGroupName }}
  labels:
    app: {{ include "cert-manager-webhook-pcloud.name" . }}
    chart: {{ include "cert-manager-webhook-pcloud.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
  annotations:
    cert-manager.io/inject-ca-from: "{{ .Values.certManager.namespace }}/{{ include "cert-manager-webhook-pcloud.servingCertificate" . }}"
spec:
  group: {{ .Values.apiGroupName }}
  groupPriorityMinimum: 1000
  versionPriority: 15
  service:
    name: {{ include "cert-manager-webhook-pcloud.fullname" . }}
    namespace: {{ .Values.certManager.namespace | quote }}
  version: v1alpha1
