cloudbees-pse-pod-mutator-admission-controller

command module
v0.0.0-...-607648f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

README

Mutating admission controller to fix jenkin's crap

Based on: https://github.com/morvencao/kube-mutating-webhook-tutorial

What it does

When it's deployed if a pod has this annotation:

cloudbees-pse-fixer.prezi.com/activate: "yes"

All volume mounts mounting /var/lib/jenkins will be removed from the pod. Why? Because we are installing stuff there and we only need /var/lib/jenkins/workspace to be a volume.

Deploying

No fancy integrations yet, the jist of it is this:


./scripts/build.sh  # build and upload image
./scripts/deploy.sh # deploy it

Certificates

The admission controller depend on some certificates to be availabe for the API to work. To regenerate that please use


./scripts/create-signed-cert.sh

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