Kyma is an opinionated set of Kubernetes-based modular building blocks, including all necessary capabilities to develop and run enterprise-grade cloud-native applications.
The current approach creates the connection on every request which leads to multiple queries to the API server. In certain cases, it leads to timeouts, and pod-presets are not applied. The fix moves the client creation to the component initialization and then reuses it during all calls.
Expected result
The client is reused between calls.
Actual result
The new client is created for every resource processing.
Description
The current approach creates the connection on every request which leads to multiple queries to the API server. In certain cases, it leads to timeouts, and pod-presets are not applied. The fix moves the client creation to the component initialization and then reuses it during all calls.
Expected result
The client is reused between calls.
Actual result
The new client is created for every resource processing.
Steps to reproduce
Troubleshooting