Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 568 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 568 Bytes

Kubernetes Validating Webhook

This is a Kubernetes validating webhook written in Python using Flask.

I've written a blog post, and if you like you can read more on the whole setup here.

It works by intercepting Deployment creation, if there isn't a required label set, the request will be rejected.

The required label is set through environment variable in the webhook deployment file.

env:
- name: LABEL
  value: development

webhook-image