github.com/ironcore-dev/gardener-extension-provider-ironcore@v0.3.2-0.20240314231816-8336447fb9a0/docs/development/local-setup.md (about)

     1  ### admission-ironcore
     2  
     3  `admission-ironcore` is an admission webhook server which is responsible for the validation of the cloud provider (ironcore in this case) specific fields and resources. The Gardener API server is cloud provider agnostic and it wouldn't be able to perform similar validation.
     4  
     5  Follow the steps below to run the admission webhook server locally.
     6  
     7  1. Start the Gardener API server. 
     8  
     9      For details, check the Gardener [local setup](https://github.com/gardener/gardener/blob/master/docs/development/local_setup.md).
    10  
    11  1. Start the webhook server
    12  
    13      Make sure that the `KUBECONFIG` environment variable is pointing to the local garden cluster.
    14  
    15      ```bash
    16      make start-admission
    17      ```
    18  
    19  1. Setup the `ValidatingWebhookConfiguration`.
    20  
    21      `hack/dev-setup-admission-ironcore.sh` will configure the webhook Service which will allow the kube-apiserver of your local cluster to reach the webhook server. It will also apply the `ValidatingWebhookConfiguration` manifest.
    22  
    23      ```bash
    24      ./hack/dev-setup-admission-ironcore.sh
    25      ```
    26  
    27  You are now ready to experiment with the `admission-ironcore` webhook server locally.