Skip to content

Include netdata-otel in restarter targets#525

Merged
M4itee merged 1 commit intomasterfrom
fix/restarter-for-otel
Apr 2, 2026
Merged

Include netdata-otel in restarter targets#525
M4itee merged 1 commit intomasterfrom
fix/restarter-for-otel

Conversation

@M4itee
Copy link
Copy Markdown
Contributor

@M4itee M4itee commented Apr 2, 2026

I forgot to include netdata-otel in the restarter policy, this is a simple fix for it.

@M4itee M4itee requested review from a team and ilyam8 as code owners April 2, 2026 07:18
@M4itee M4itee requested a review from witalisoft April 2, 2026 07:18
@ilyam8 ilyam8 requested a review from Copilot April 2, 2026 07:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Netdata Helm chart’s restarter policy so it also targets the netdata-otel Deployment when OpenTelemetry is enabled.

Changes:

  • Add {{ template "netdata.name" . }}-otel to the restarter Role’s allowed resourceNames.
  • Include deployment/<name>-otel in the restarter CronJob’s rollout-restart target list when .Values.netdataOpentelemetry.enabled is true.
  • Extend netdata.restarter.enabled to consider .Values.netdataOpentelemetry.enabled as a qualifying workload.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
charts/netdata/templates/restarter/role.yml Allows the restarter to patch/get the *-otel Deployment.
charts/netdata/templates/restarter/cronjob.yaml Adds deployment/*-otel to the rollout restart arguments when OTel is enabled.
charts/netdata/templates/_helpers.tpl Ensures the restarter can be enabled when only netdataOpentelemetry is enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@M4itee M4itee merged commit 4bf29f4 into master Apr 2, 2026
6 checks passed
@M4itee M4itee deleted the fix/restarter-for-otel branch April 2, 2026 11:16
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.

3 participants