From 3178209b437b9be9771bf31c3c0a43776e51a167 Mon Sep 17 00:00:00 2001 From: Daniel Budziwojski <135250101+dbudziwojskiNR@users.noreply.github.com> Date: Wed, 29 May 2024 15:07:14 -0700 Subject: [PATCH] [nr-k8s-otel-collector] Add eu support (#1383) #### Is this a new chart #### What this PR does / why we need it: #### Which issue this PR fixes *(optional, in `fixes #(, fixes #, ...)` format, will close that issue when PR gets merged)* - fixes # #### Special notes for your reviewer: #### Checklist [Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.] - [X] Chart Version bumped - [X] Variables are documented in the README.md - [X] Title of the PR starts with chart name (e.g. `[mychartname]`) --- charts/nr-k8s-otel-collector/Chart.yaml | 2 +- charts/nr-k8s-otel-collector/templates/_endpoint.tpl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/nr-k8s-otel-collector/Chart.yaml b/charts/nr-k8s-otel-collector/Chart.yaml index 3029d1386..54bf6eba6 100644 --- a/charts/nr-k8s-otel-collector/Chart.yaml +++ b/charts/nr-k8s-otel-collector/Chart.yaml @@ -17,7 +17,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.0 +version: 0.2.1 dependencies: - name: common-library diff --git a/charts/nr-k8s-otel-collector/templates/_endpoint.tpl b/charts/nr-k8s-otel-collector/templates/_endpoint.tpl index 1de901e6e..7ef84e586 100644 --- a/charts/nr-k8s-otel-collector/templates/_endpoint.tpl +++ b/charts/nr-k8s-otel-collector/templates/_endpoint.tpl @@ -5,6 +5,10 @@ A helper to return the NR endpoint to send data to {{- if include "newrelic.common.nrStaging" . -}} "https://staging-otlp.nr-data.net" {{- else -}} - "https://otlp.nr-data.net" + {{- if hasPrefix "eu" (include "newrelic.common.license._licenseKey" . ) -}} + "https://otlp.eu01.nr-data.net" + {{- else -}} + "https://otlp.nr-data.net" + {{- end -}} {{- end -}} {{- end -}} \ No newline at end of file