webhook

command module
v0.0.0-...-3e0dd72 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

About

This is a test mutating webhook. The code was copied and modified from https://github.com/kubernetes-sigs/controller-runtime/tree/master/examples/builtins

This webhook's only purpose is to inject capabilities into each pod that is requesting them as an annotation.

This webhook relies on cert-manager for certificate management and was only tested on OpenShift.

Installation

Install the cert-manager on OpenShift:

make install-openshift-cert-manager

Make and push the image:

make podman-push

Deploy the webhook:

make deploy

Remove the webhook:

make undeploy

You can see the webhook pod's logs with:

oc logs -n webhook -l deployment=webhook -f

File resources/example-deployment.yaml contains an example pod deployment with the webhook/capabilities annotation.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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