Skip to content

[nr-k8s-otel-collector] Adding registry and imagePullSecrets configuration#2000

Merged
dbudziwojskiNR merged 5 commits intonewrelic:masterfrom
tviaud:nr-k8s-otel-collector-registry-support
Dec 2, 2025
Merged

[nr-k8s-otel-collector] Adding registry and imagePullSecrets configuration#2000
dbudziwojskiNR merged 5 commits intonewrelic:masterfrom
tviaud:nr-k8s-otel-collector-registry-support

Conversation

@tviaud
Copy link
Contributor

@tviaud tviaud commented Nov 13, 2025

Is this a new chart

No

What this PR does / why we need it:

Adding image configuration based on the nri-bundle chart to use the same standard (https://github.com/newrelic/helm-charts/blob/master/charts/nri-bundle/values.yaml#L100). With the recent addition of the kubectl image we needed to be able to configure the registry of images as mandated within our organisation.

This is making use of the NewRelic Common library to achieve this.

This will be a breaking change for people configuring their image repository using the image section of the current chart (replaced by images section in this PR).

Added imagePullSecrets support for authenticated registries as well.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) 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.]

  • 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.

🚨 Upcoming Breaking Changes

  • Removed image configuration in favor of images section. The following config is deprecated and will be removed in a future release.
    • 'image.repository' has been replaced with 'images.collector.repository'.
    • 'image.tag' has been replaced with 'images.collector.tag'.
    • 'image.pullPolicy' has been replaced with 'images.collector.pullPolicy'.

🚀 What's Changed

  • Added images configuration with registry support for both collector and kubectl images via images configuration.
  • Added imagePullSecrets support for authenticated registries.

@mangulonr
Copy link
Contributor

Thanks @tviaud for your great proposal!

We will allocate some time from the team to make a first review during the next sprint.
We may give you some feedback in the next weeks.

…support

# Conflicts:
#	charts/nr-k8s-otel-collector/Chart.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/clusterrole.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/clusterrolebinding.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/daemonset-configmap.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/daemonset.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/deployment-configmap.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/deployment.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/secret.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/service.yaml
#	charts/nr-k8s-otel-collector/examples/k8s/rendered/serviceaccount.yaml
@dbudziwojskiNR dbudziwojskiNR merged commit ab9907e into newrelic:master Dec 2, 2025
13 checks passed
dpacheconr pushed a commit to dpacheconr/helm-charts that referenced this pull request Dec 15, 2025
…ation (newrelic#2000)

<!--
Thank you for contributing to New Relic's Helm charts. Before you submit
this PR we'd like to
make sure you are aware of our technical requirements:

*
https://github.com/newrelic-experimental/helm-charts/blob/master/CONTRIBUTING.md#technical-requirements

For a quick overview across what we will look at reviewing your PR,
please read
our review guidelines:

*
https://github.com/newrelic-experimental/helm-charts/blob/master/REVIEW_GUIDELINES.md

Following our best practices right from the start will accelerate the
review process and
help get your PR merged quicker.

When updates to your PR are requested, please add new commits and do not
squash the
history. This will make it easier to identify new changes. The PR will
be squashed
anyways when it is merged. Thanks.

For fast feedback, please @-mention maintainers that are listed in the
Chart.yaml file.

Please make sure you test your changes before you push them. Once
pushed, a Github Action
will run across your changes and do some initial checks and linting.
These checks run
very quickly. Please check the results. We would like these checks to
pass before we
even continue reviewing your changes.
-->
#### Is this a new chart
No
#### What this PR does / why we need it:

Adding image configuration based on the `nri-bundle` chart to use the
same standard
(https://github.com/newrelic/helm-charts/blob/master/charts/nri-bundle/values.yaml#L100).
With the recent addition of the `kubectl` image we needed to be able to
configure the registry of images as mandated within our organisation.

This is making use of the NewRelic Common library to achieve this.

This will be a breaking change for people configuring their image
repository using the `image` section of the current chart (replaced by
`images` section in this PR).

Added imagePullSecrets support for authenticated registries as well.

#### Which issue this PR fixes
*(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)`
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]`)

# 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.

<!--BEGIN-RELEASE-NOTES-->
## 🚨 Upcoming Breaking Changes
* Removed `image` configuration in favor of `images` section. The
following config is deprecated and will be removed in a future release.
* 'image.repository' has been replaced with
'images.collector.repository'.
  * 'image.tag' has been replaced with 'images.collector.tag'.
* 'image.pullPolicy' has been replaced with
'images.collector.pullPolicy'.

## 🚀 What's Changed
* Added images configuration with registry support for both `collector`
and `kubectl` images via `images` configuration.
* Added imagePullSecrets support for authenticated registries.
<!--END-RELEASE-NOTES-->

---------

Co-authored-by: Daniel Budziwojski <dbudziwojski@newrelic.com>
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.

4 participants

Comments