gardener / gardener-extension-provider-aws

Gardener extension controller for the AWS cloud provider (https://aws.amazon.com).
https://gardener.cloud
Apache License 2.0
18 stars 96 forks source link

Add object selector to the shoot webhook #988

Open ialidzhikov opened 2 months ago

ialidzhikov commented 2 months ago

How to categorize this PR?

/area scalability /kind enhancement /platform aws

What this PR does / why we need it: Add object selector to the shoot webhook so that it is not invoked on every ConfigMap CREATE/UPDATE request in the kube-system namespace in the Shoot but only for the addons-nginx-ingress-controller ConfigMap.

Which issue(s) this PR fixes: Part of https://github.com/gardener/gardener/issues/9864

Special notes for your reviewer: N/A

Release note:

The shoot-webhook that mutates the `addons-nginx-ingress-controller` ConfigMap does now specify object selector. The webhook will now intercept only requests for the `addons-nginx-ingress-controller` ConfigMap.