mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-01 22:35:49 +02:00

* restructure source and templates to follow helm best-practices * add basic actions for more complex workflows * workflows for pr ands tags (along with required fixes to go code) * re-add helm chart and automated chart release * fix errors in workflows * improve documentation * fix finding existing records * add missing namespace to workflow * cleanup of kubernetes pipeline * Fixed and documented tagging workflow
20 lines
808 B
YAML
20 lines
808 B
YAML
{{- $APIRegistrationAPIVersion := ternary "apiregistration.k8s.io/v1" "apiregistration.k8s.io/v1beta1" (.Capabilities.APIVersions.Has "apiregistration.k8s.io/v1") -}}
|
|
apiVersion: {{ $APIRegistrationAPIVersion }}
|
|
kind: APIService
|
|
metadata:
|
|
name: v1alpha1.{{ .Values.groupName }}
|
|
labels:
|
|
app: {{ include "dnsimple-webhook.name" . }}
|
|
chart: {{ include "dnsimple-webhook.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
annotations:
|
|
cert-manager.io/inject-ca-from: "{{ .Release.Namespace }}/{{ include "dnsimple-webhook.servingCertificate" . }}"
|
|
spec:
|
|
group: {{ .Values.groupName }}
|
|
groupPriorityMinimum: 1000
|
|
versionPriority: 15
|
|
service:
|
|
name: {{ include "dnsimple-webhook.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
version: v1alpha1
|