Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

chimera-kube/chimera-admission-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been archived since we switched to the new policy server

chimera-admission-library

chimera-admission-library is a library that allows you to trivially write admission webhooks that will self-register against a Kubernetes cluster, specially for testing purposes.

Given you want to test some webhook logic, you can write a simple file that will start a webhook server calling to your declared callbacks, creating the required certificates and registering the webhook against a Kubernetes cluster.

You can check some examples in the chimera-samples github project.

How it works

You need a kubeconfig file that has permissions to delete and create ValidatingWebhookConfiguration resources. By default, when you start the chimera server from your program, chimera will look for your Kubernetes configuration using the following precedence rules:

  • KUBECONFIG environment variable
  • $HOME/.kube/config if exists

About

Library to easily expose an HTTP server that registers webhooks with callbacks on a Kubernetes cluster

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published