Skip to content

Helm: fix prometheus port set to 0#2371

Merged
mariomac merged 1 commit intografana:mainfrom
mariomac:fix-helm
Dec 11, 2025
Merged

Helm: fix prometheus port set to 0#2371
mariomac merged 1 commit intografana:mainfrom
mariomac:fix-helm

Conversation

@mariomac
Copy link
Contributor

Due to a breaking change in Helm (zero values are now treated as existing), people trying to disable prometheus port by setting it to 0 caused an error:

Error: INSTALLATION FAILED: DaemonSet.apps "beyla" is invalid: spec.template.spec.containers[0].ports[0].containerPort: Required value

@mariomac mariomac requested a review from a team as a code owner December 11, 2025 09:54
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.25%. Comparing base (d9363e9) to head (17e5c27).

❗ There is a different number of reports uploaded between BASE (d9363e9) and HEAD (17e5c27). Click for more details.

HEAD has 38 uploads less than BASE
Flag BASE (d9363e9) HEAD (17e5c27)
oats-test 5 0
integration-test-vm-${ARCH}-${KERNEL_VERSION} 6 0
k8s-integration-test 17 0
integration-test 10 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2371      +/-   ##
==========================================
- Coverage   49.78%   43.25%   -6.53%     
==========================================
  Files          38       38              
  Lines        2971     2971              
==========================================
- Hits         1479     1285     -194     
- Misses       1343     1573     +230     
+ Partials      149      113      -36     
Flag Coverage Δ
integration-test ?
integration-test-vm-${ARCH}-${KERNEL_VERSION} ?
k8s-integration-test ?
oats-test ?
unittests 43.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marctc
Copy link
Contributor

marctc commented Dec 11, 2025

idea: at some point we could stole some of the linters and testing used here https://github.com/grafana/k8s-monitoring-helm/

@mariomac mariomac merged commit 689c2f8 into grafana:main Dec 11, 2025
16 of 17 checks passed
@mariomac mariomac deleted the fix-helm branch December 11, 2025 13:01
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