charts/charts/tekton-triggers/templates/mutatingwebhookconfig-webhook.yaml
Tin Lam e00a3f52eb fix(triggers): updates tekton triggers chart
This patch updates the tekton trigger charts to:

1. align with the latest upstream manifests where resources between the
   webhook and the controller are now separated out;
2. add liveness and readiness probes to the webhook deployment;
3. changed the naming convention of the files to be:
   <k8s resource>-<name separated by _>.yaml for easier identification.

Signed-off-by: Tin Lam <tin@irrational.io>
Change-Id: I8adac3f4882b8ad38bfe57d5873f36c86aa7f0a0
2020-12-22 13:35:25 -06:00

20 lines
563 B
YAML

{{- define "mutatingwebhookconfig-webhook" -}}
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: webhook.triggers.tekton.dev
webhooks:
- admissionReviewVersions:
- v1beta1
clientConfig:
service:
name: tekton-triggers-webhook
namespace: {{ $.Release.Namespace }}
failurePolicy: Fail
sideEffects: None
name: webhook.triggers.tekton.dev
...
{{- end -}}
{{- include "helpers.template.overlay" ( dict "Global" $ "template_definition" "mutatingwebhookconfig-webhook" ) }}