diff --git a/library/CHART-TEMPLATE/Chart.lock b/library/CHART-TEMPLATE/Chart.lock index fb72cc35e..f4e97e09f 100644 --- a/library/CHART-TEMPLATE/Chart.lock +++ b/library/CHART-TEMPLATE/Chart.lock @@ -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" diff --git a/library/CHART-TEMPLATE/Chart.yaml b/library/CHART-TEMPLATE/Chart.yaml index 5235d2784..5325a0afc 100644 --- a/library/CHART-TEMPLATE/Chart.yaml +++ b/library/CHART-TEMPLATE/Chart.yaml @@ -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 @@ -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: diff --git a/library/common-library/templates/_endpoints.tpl b/library/common-library/templates/_endpoints.tpl index 31ba81571..90225d7f5 100644 --- a/library/common-library/templates/_endpoints.tpl +++ b/library/common-library/templates/_endpoints.tpl @@ -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 -}} @@ -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 -}} \ No newline at end of file +{{- 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 -}}