Skip to content

[prometheus-yet-another-cloudwatch-exporter] use configurable portName for service targetPort#7042

Merged
cristiangreco merged 1 commit into
prometheus-community:mainfrom
amir-allahveran:yace-configurable-service-targetport
Jun 30, 2026
Merged

[prometheus-yet-another-cloudwatch-exporter] use configurable portName for service targetPort#7042
cristiangreco merged 1 commit into
prometheus-community:mainfrom
amir-allahveran:yace-configurable-service-targetport

Conversation

@amir-allahveran

Copy link
Copy Markdown
Contributor

What this PR does

The container port name is configurable via .Values.portName in the deployment (templates/deployment.yaml), but the Service hardcoded both targetPort and the port name as http.

Setting portName to anything other than http broke the Service → Pod port resolution, since the Service's targetPort: http no longer matched the container port name.

This change makes the Service use .Values.portName for both targetPort and name, keeping them in sync with the deployment.

Backward compatibility

portName defaults to http in values.yaml, so existing installs render identically — no behavior change unless the user has overridden portName.

Checklist

  • Chart version bumped (0.46.0 → 0.46.1, patch — backward-compatible)
  • DCO sign-off
  • Single chart in this PR
…e for service targetPort

The container port name is configurable via .Values.portName in the
deployment, but the service hardcoded targetPort and name as "http".
Setting portName to anything other than "http" broke the service ->
pod port resolution. Use .Values.portName in the service so it stays
in sync. Backward-compatible: portName defaults to "http".

Signed-off-by: Amir Allahveran <amir.allahveran@grafana.com>
@cristiangreco cristiangreco merged commit ffa88ef into prometheus-community:main Jun 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants