Open lazyoldbear opened 3 months ago
Luckily it is possible to override the endpoint. I now have this in my nri-bundle values:
nri-bundle:
newrelic-logging:
enabled: true
# See:
# - https://github.com/newrelic/helm-charts/blob/master/charts/newrelic-logging/values.yaml
# - https://github.com/newrelic/helm-charts/issues/1399
endpoint: https://log-api.eu.newrelic.com/log/v1
Admitted, this is not great DX. Probably initially only licence-key was supported and parsing for 'eu' was added. Then later, using an external existing secret was added, and things became complex and broke.
Parsing the licence key for a string imo has some downsides:
I would suggest adding something like region: us
to the global settings, with the ability to set to 'eu', and using that for any conditional logic.
Bug description
If license key is defined in an external secret, the following code kicks in (and the same for the logs endpoint):
Thus, EU region never gets selected.
Version of Helm and Kubernetes
Helm 3, Kubernetes 1.28
Which chart?
nri-bundle
5.0.81
What happened?
I set it up, pressed the button, and then this. Fix, please.
What you expected to happen?
An explicit value to choose the region, since automatic detection will never work with external secret.
How to reproduce it?
.Values.global.customSecretName
403
in logger podsAnything else we need to know?
Reindeers sometimes eat lemmings.