1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00
external-secrets/pkg
Tsubasa Nagasawa 199c9103db
feat(certcontroller): Allow restricting CRDs and Webhook configs in Informer cache (#3588)
* feat: Add component labels to custom resource definitions

Prerequisite for restricting the CRDs cached by Informer

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>

* feat(certcontroller): Allow restricting CRDs and Webhook configs in Informer cache

The certcontroller watches CRDs and Webhook configurations, and
manages CA certificates for conversion webhooks of CRDs and Webhook
configurations. Some clusters have a large number of CRDs and Webhook
configurations installed. Additionally, some CRDs have large object sizes.
Currently, the certcontroller holds all CRDs and Webhook configurations
in the Informer cache. Since this includes CRDs not managed by the
certcontroller for CA certificates, memory usage tends to be high.
This PR adds a label to the CRDs and configures the Informer cache to hold
only the CRDs and Webhook configurations restricted by the label selector.
It assumes that the CRDs have a label. Depending on how the External Secrets
Operator is managed, it may be possible to update the External Secrets
Operator without updating the CRDs, so as a precaution, it can be turned
on/off via a startup option. It is disabled by default.

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>

---------

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2024-06-16 12:52:10 +02:00
..
cache feat: add push secret to e2e tests (#3017) 2024-02-12 16:44:45 +01:00
common/webhook Update Go and golangci-lint version (#3396) 2024-04-25 06:36:11 -03:00
constants feat(certcontroller): Allow restricting CRDs and Webhook configs in Informer cache (#3588) 2024-06-16 12:52:10 +02:00
controllers feat(certcontroller): Allow restricting CRDs and Webhook configs in Informer cache (#3588) 2024-06-16 12:52:10 +02:00
feature feat: add push secret to e2e tests (#3017) 2024-02-12 16:44:45 +01:00
find feature: aws getallsecrets (#820) 2022-03-24 17:09:32 +01:00
generator Update Go and golangci-lint version (#3396) 2024-04-25 06:36:11 -03:00
metrics Creating constants file (#2291) 2023-05-15 17:22:18 +02:00
provider chore: update dependencies (#3570) 2024-06-15 14:49:30 +02:00
template Add CA-Bundle to pemToPkcs12 output (#3494) 2024-06-03 22:35:02 +02:00
utils fix: parameter store should be called only once (#3584) 2024-06-15 12:02:08 +02:00