https://github.com/fl64/patcher-mwc
https://github.com/fl64/patcher-mwc
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fl64/patcher-mwc
- Owner: fl64
- Created: 2025-01-31T16:09:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-03T05:52:22.000Z (over 1 year ago)
- Last Synced: 2025-07-09T14:05:10.521Z (11 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Patcher Mutation Webhook Controller
This repository contains a simple Kubernetes Admission Controller written in Go. The purpose of this code is strictly for testing and debugging purposes. It is not intended for production use.
## Overview
The admission controller listens for incoming admission requests and applies mutations to Kubernetes resources based on a provided configuration file. The configuration file specifies which resources should be mutated and the patches to be applied.
## Features
- Admission Review Handling: The controller handles Kubernetes AdmissionReview requests and responds with appropriate mutations.
- YAML Configuration: Mutations are defined in a YAML configuration file, allowing for easy customization.
- TLS Support: The server runs with TLS encryption, requiring a certificate and private key.
- Health Check: Includes a /healthz endpoint for basic health checks.
## Configuration
The configuration file (config.yaml) specifies the resources to be mutated and the patches to apply. Example configuration:
```yaml
mutations:
- resource:
group: "apps"
version: "v1"
kind: "Deployment"
patches:
- op: "add"
path: "/metadata/labels/test"
value: "true"
```
## Disclaimer
This code is provided as-is and is not intended for production use. It is meant for testing and debugging purposes only. Use at your own risk.