chimera-admission-library

module
v0.0.0-...-4ff1449 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0

README

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

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL