11# pod-image-swap-webhook
22
33[ ![ Build Status] ( https://github.com/Bonial-International-GmbH/pod-image-swap-webhook/actions/workflows/ci.yml/badge.svg )] ( https://github.com/Bonial-International-GmbH/pod-image-swap-webhook/actions/workflows/ci.yml )
4+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/Bonial-International-GmbH/pod-image-swap-webhook )] ( https://goreportcard.com/report/github.com/Bonial-International-GmbH/pod-image-swap-webhook )
5+ ![ License] ( https://img.shields.io/github/license/Bonial-International-GmbH/pod-image-swap-webhook )
46
57A mutating webhook that patches Pod container images based on configuration
68rules. For example, if you want to transparently proxy image pulls through an
@@ -22,6 +24,13 @@ Of course this webhook also works without Harbor.
2224
2325The helm chart provided in this repository can be used to deploy the webhook.
2426
27+ First, add the helm repository:
28+
29+ ``` sh
30+ helm repo add pod-image-swap-webhook \
31+ https://bonial-international-gmbh.github.io/pod-image-swap-webhook
32+ ```
33+
2534Create a ` values.yaml ` and add a ` webhookConfig ` section with the desired
2635replacement configuration, for example:
2736
@@ -39,13 +48,15 @@ webhookConfig:
3948 replacement : registry.example.org/docker.io
4049` ` `
4150
42- You can find documentation for all available configuration fields in
43- [` config.sample.yaml`](config.sample.yaml).
51+ You can find documentation for all available ` webhookConfig` fields in
52+ [`config.sample.yaml`](config.sample.yaml). For more helm configuration options
53+ have a look into the [`values.yaml`
54+ defaults](charts/pod-image-swap-webhook/values.yaml).
4455
4556Finally use helm to install the webhook :
4657
4758` ` ` sh
48- helm upgrade pod-image-swap-webhook charts /pod-image-swap-webhook \
59+ helm upgrade pod-image-swap-webhook pod-image-swap-webhook /pod-image-swap-webhook \
4960 --install --namespace kube-system --values values.yaml
5061` ` `
5162
0 commit comments