Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/CHART-TEMPLATE/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common-library
repository: file://../common-library
version: 2.1.0
digest: sha256:e7b594a396402d4529dc086347d5acd354c420305df252b1a53696e81f01de02
generated: "2026-05-05T12:02:16.606526-07:00"
version: 2.1.1
digest: sha256:00fed43bd21d88e94613647bdfc66f189a5ef6d1ec678d668da946260ad7abef
generated: "2026-05-07T14:59:07.858094-07:00"
4 changes: 2 additions & 2 deletions library/CHART-TEMPLATE/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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: 2.1.0
version: 2.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -25,7 +25,7 @@ appVersion: "1.16.0"

dependencies:
- name: common-library
version: 2.1.0
version: 2.1.1
repository: file://../common-library # We keep this as a file to test things immediately locally/in the pipeline

keywords:
Expand Down
48 changes: 46 additions & 2 deletions library/common-library/templates/_endpoints.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ All endpoints exposed to customers though NR helm charts should be defined in a
See below.
*/}}

{{- define "newrelic.common.endpoints.resolve" -}}
{{- define "newrelic.common.endpoints.resolve" -}}
{{- $region := include "newrelic.common.region.or_us" .ctx -}}
{{- $endpoint := include "newrelic.common.resolve" (dict "ctx" .ctx "key" .key "default" (get .endpoints $region)) -}}
{{- required (printf "This chart does not have support for the region provided '%s'. Please either supply an override URL via .Values.%s or .Values.global.%s, or set a different region." $region .key .key) $endpoint -}}
Expand Down Expand Up @@ -133,4 +133,48 @@ See below.
"STG" "https://staging-trace-api.newrelic.com"
-}}
{{- include "newrelic.common.endpoints.resolve" (dict "ctx" . "key" "traceApiEndpoint" "endpoints" $endpoints) -}}
{{- end -}}
{{- end -}}

{{/* Returns the New Relic Browser endpoint for this region */}}
{{- define "newrelic.common.browser_endpoint" -}}
{{- $endpoints := dict
"US" "https://bam.nr-data.net"
"EU" "https://bam.eu01.nr-data.net"
"JP" "https://bam.jp.nr-data.net"
"STG" "https://staging-bam.nr-data.net"
-}}
{{- include "newrelic.common.endpoints.resolve" (dict "ctx" . "key" "browserEndpoint" "endpoints" $endpoints) -}}
{{- end -}}

{{/* Returns the New Relic Mobile Collector endpoint for this region */}}
{{- define "newrelic.common.mobile_collector_endpoint" -}}
{{- $endpoints := dict
"US" "https://mobile-collector.newrelic.com"
"EU" "https://mobile-collector.eu01.nr-data.net"
"JP" "https://mobile-collector.jp.nr-data.net"
"STG" "https://staging-mobile-collector.com"
-}}
{{- include "newrelic.common.endpoints.resolve" (dict "ctx" . "key" "mobileCollectorEndpoint" "endpoints" $endpoints) -}}
{{- end -}}

{{/* Returns the New Relic Mobile Crash endpoint for this region */}}
{{- define "newrelic.common.mobile_crash_endpoint" -}}
{{- $endpoints := dict
"US" "https://mobile-crash.newrelic.com"
"EU" "https://mobile-crash.eu01.nr-data.net"
"JP" "https://mobile-crash.jp.nr-data.net"
"STG" "https://staging-mobile-crash.newrelic.com"
-}}
{{- include "newrelic.common.endpoints.resolve" (dict "ctx" . "key" "mobileCrashEndpoint" "endpoints" $endpoints) -}}
{{- end -}}

{{/* Returns the New Relic Mobile Symbol Upload endpoint for this region */}}
{{- define "newrelic.common.mobile_symbol_upload_endpoint" -}}
{{- $endpoints := dict
"US" "https://mobile-symbol-upload.newrelic.com"
"EU" "https://mobile-symbol-upload.eu01.nr-data.net"
"JP" "https://mobile-symbol-upload.jp.nr-data.net"
"STG" "https://staging-mobile-symbol-upload.newrelic.com"
-}}
{{- include "newrelic.common.endpoints.resolve" (dict "ctx" . "key" "mobileSymbolUploadEndpoint" "endpoints" $endpoints) -}}
{{- end -}}
Loading