Issue
This issue was first mentioned in #3442.
When we use a kubernetes secret provider, we need to get its result every time:
|
secret, err := secretIntefrace.Get(ctx, secretName, metav1.GetOptions{}) |
This is not ideal, because we could be just fetching the result one time and using it for the future, instead of repeating the same steps every time.
We need to implement a way to reduce the amount of requests to the API server for this by caching the result.
To do
Issue
This issue was first mentioned in #3442.
When we use a kubernetes secret provider, we need to get its result every time:
elastic-agent/internal/pkg/composable/providers/kubernetessecrets/kubernetes_secrets.go
Line 80 in 69cc860
This is not ideal, because we could be just fetching the result one time and using it for the future, instead of repeating the same steps every time.
We need to implement a way to reduce the amount of requests to the API server for this by caching the result.
To do