{"repo":"slok/kubewebhook","free":true,"listed":false,"github":"https://github.com/slok/kubewebhook","clone":"git clone https://github.com/slok/kubewebhook.git","description":"Go framework to create Kubernetes mutating and validating webhooks","language":"Go","stars":631,"topics":["kubernetes","webhooks","controller","mutating","validating","admission","k8s","apiserver"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"kubewebhook [ ][godoc-url] Kubewebhook is a small Go framework to create [external admission webhooks][aw-url] for Kubernetes. With Kubewebhook you can make validating and mutating webhooks in any version, fast, easy, and focusing mainly on the domain logic of the webhook itself. Features - Ready for mutating and validating webhook kinds. - Abstracts webhook versioning (compatible with v1beta1 and v1 ). - Resource inference (compatible with CRD s and fallbacks to [ Unstructured ][runtime-unstructured]). - Easy and testable API. - Simple, extensible and flexible. - Multiple webhooks on the same server. - Webhook metrics ([RED][red-metrics-url]) for [Prometheus][prometheus-url] with [Grafana dashboard][grafana-dashboard] included. - Webhook tracing with [Opentelemetry] support. - Supports [warnings]. Getting started Use github.com/slok/kubewebhook/v2 to import Kubewebhook v2 . You can get more examples in here Production ready example This repository is a production ready webhook app: https://github.com/slok/k8s-webhook-example It shows, different webhook use cases, app structure, testing domain logic, kubewebhook use case, how to deploy... Static and dynamic webhooks We have 2 kinds of webhooks: - Static: Common one, is a single resource type webhook. - Use [ mutating.WebhookConfig.Obj ][mutating-cfg] to configure. - Use [ validating.WebhookConfig.Obj ][validating-cfg] to configure. - Dynamic: Used when the same webhook act on multiple types, unknown types and/or is used for g","default_branch":null,"files":null,"tree":[],"storefront":"/r/slok","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slok/kubewebhook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}