From 4288050f188f8f72675bd79716a098c9d68e004e Mon Sep 17 00:00:00 2001 From: Marty T <120425148+tippmar-nr@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:28:53 -0500 Subject: [PATCH] test: Modify the .NET helm chart to allow passing a value for NEW_RELIC_HOST (#61) --- tests/dotnet/chart/templates/deployment.yaml | 5 ++--- tests/dotnet/chart/values.yaml | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/dotnet/chart/templates/deployment.yaml b/tests/dotnet/chart/templates/deployment.yaml index 524e8ad..ea70afd 100644 --- a/tests/dotnet/chart/templates/deployment.yaml +++ b/tests/dotnet/chart/templates/deployment.yaml @@ -32,9 +32,8 @@ spec: value: finest - name: NEW_RELIC_LOG_CONSOLE value: "1" - # set the host to staging if using a staging license key - #- name: NEW_RELIC_HOST - # value: staging-collector.newrelic.com + - name: NEW_RELIC_HOST + value: {{ .Values.newRelicHost | default "collector.newrelic.com" }} --- apiVersion: v1 kind: Service diff --git a/tests/dotnet/chart/values.yaml b/tests/dotnet/chart/values.yaml index 44eb261..cd08068 100644 --- a/tests/dotnet/chart/values.yaml +++ b/tests/dotnet/chart/values.yaml @@ -1 +1,2 @@ -scenarioTag: "" \ No newline at end of file +scenarioTag: "" +newRelicHost: "" \ No newline at end of file