Skip to content

Fix/ping runtime service name#2029

Open
roshnii20 wants to merge 2 commits intonewrelic:masterfrom
roshnii20:fix/ping-runtime-service-name
Open

Fix/ping runtime service name#2029
roshnii20 wants to merge 2 commits intonewrelic:masterfrom
roshnii20:fix/ping-runtime-service-name

Conversation

@roshnii20
Copy link

Is this a new chart

No

What this PR does / why we need it:

Fixes a bug in the ping-runtime subchart where service.yaml references a non-existent template function ping-runtime.hostname. This prevented the service name from being configurable via nameOverride, which blocked deploying multiple isolated ping-runtime instances in the same namespace (as recommended in the New Relic scaling documentation).

Problem: When scaling out ping-runtime with different nameOverride values, multiple Deployments were created correctly but multiple Services could not be created because the service name was not configurable.

Solution: Updated service.yaml to use the existing ping-runtime.name template function, enabling nameOverride to work correctly for both Deployments and Services.

Testing: Validated locally with ct lint and deployed to a test cluster with multiple ping-runtime instances to confirm each service now has a unique, configurable name.

Which issue this PR fixes

Special notes for your reviewer:

This PR includes changes to both the ping-runtime subchart and its parent synthetics-job-manager chart:

  • ping-runtime/templates/service.yaml: Fixed template function reference (hostname → name)
  • ping-runtime/Chart.yaml: Version bump 1.0.29 → 1.0.30
  • synthetics-job-manager/Chart.yaml: Updated dependency version and chart version 3.0.41 → 3.0.42

All local validation tests passed including ct lint and deployment testing with multiple instances.

@Philip-R-Beckwith @sshah-nr @vkasanneni-nr @marcusperezNR @mderemer-nr @kaschaefer-nr @sadafarshad @lromer22 @kondracek-nr @sidnaiknewrelic

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [mychartname])

Release Notes to Publish (nr-k8s-otel-collector)

If this PR contains changes in nr-k8s-otel-collector, please complete the following section. All other charts should ignore this section.

🚀 What's Changed

  • Tell the world about the latest changes in the chart.

- Changed service.yaml to use existing ping-runtime.name template
- This allows nameOverride to work correctly for the service
- Bumped chart version from 1.0.29 to 1.0.30
- Updated ping-runtime dependency version to 1.0.30
- Bumped chart version from 3.0.41 to 3.0.42

Related to issue newrelic#2028
@roshnii20 roshnii20 requested a review from a team as a code owner December 4, 2025 20:18
@CLAassistant
Copy link

CLAassistant commented Dec 4, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ping-runtime] service references non-existent template function

2 participants

Comments