Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 699 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 699 Bytes

Admission Mutation Proxy (txn2/amp) implementation example project.

Example Webhook implementation for the Admission Mutation Proxy (amp).

https://github.com/txn2/amp

Install

git clone git@github.com:txn2/amp-wh-example.git
cd amp-wh-example

# amp webhook handler
kubectl apply -f ./k8s/000-deployment-exampe-webhook.yml

# namespace with amp.txn2.com/enabled: "true"
kubectl apply -f ./k8s/100-namespace-amp-test.yml

# pod to be mutated
kubectl apply -f ./k8s/200-pod-mutate-test.yml

Development

Release

goreleaser --skip-publish --rm-dist --skip-validate
GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist