# infra-api webhook deployment

Copy webhook folder from infra-provider repo, the `sync-webhook.sh` helper script can sync automatically. But you can also copy the folder manually.

The ca certificate is retrieved by `kubectl get secret -n infra infra-webhook-cert -ojsonpath='{.data.ca\.crt}'` in base eks cluster.

Dev environment

``` shell
./sync-webhook.sh main dev
./patch-webhook.py --env dev
```

Staging environment

``` shell
./sync-webhook.sh gardener-arch/release-0.xx staging
./patch-webhook.py --env staging
```

Prod environment

``` shell
./sync-webhook.sh gardener-arch/v0.xx prod
./patch-webhook.py --env prod
```
