Skip to content

Hotfix port names, to avoid warning during helm install#1784

Merged
sunsingerus merged 2 commits into0.25.3from
hotfix_port_names
Aug 5, 2025
Merged

Hotfix port names, to avoid warning during helm install#1784
sunsingerus merged 2 commits into0.25.3from
hotfix_port_names

Conversation

@Slach
Copy link
Copy Markdown
Collaborator

@Slach Slach commented Aug 5, 2025

helm install warning

W0805 01:09:19.296842   62217 warnings.go:70] spec.template.spec.containers[1].ports[0]: duplicate port name "metrics" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0]

look details in https://altinitydbworkspace.slack.com/archives/C02K1MWEK2L/p1754345587373229

  • All commits in the PR are squashed. More info
  • The PR is made into dedicated next-release branch, not into master branch1. More info
  • The PR is signed. More info

--

1 If you feel your PR does not affect any Go-code or any testable functionality (for example, PR contains docs only or supplementary materials), PR can be made into master branch, but it has to be confirmed by project's maintainer.

… spec.template.spec.containers[1].ports[0]: duplicate port name "metrics" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0], look details in https://altinitydbworkspace.slack.com/archives/C02K1MWEK2L/p1754345587373229
…217 warnings.go:70] spec.template.spec.containers[1].ports[0]: duplicate port name "metrics" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0], look details in https://altinitydbworkspace.slack.com/archives/C02K1MWEK2L/p1754345587373229
@sunsingerus sunsingerus merged commit d9b8c52 into 0.25.3 Aug 5, 2025
3 checks passed
Comment on lines +21 to +23
name: ch-metrics
- port: 9999
name: operator-metrics
name: op-metrics
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Seems like port names no longer match the contents of a service monitor.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@weisdd thanks for suggestion #1788

Slach added a commit that referenced this pull request Aug 9, 2025
@Slach Slach mentioned this pull request Aug 9, 2025
3 tasks
sunsingerus pushed a commit that referenced this pull request Aug 11, 2025
* fix helm install warning, W0805 01:09:19.296842   62217 warnings.go:70] spec.template.spec.containers[1].ports[0]: duplicate port name "metrics" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0], look details in https://altinitydbworkspace.slack.com/archives/C02K1MWEK2L/p1754345587373229

* fix CI/CD failures for helm install warning, W0805 01:09:19.296842   62217 warnings.go:70] spec.template.spec.containers[1].ports[0]: duplicate port name "metrics" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0], look details in https://altinitydbworkspace.slack.com/archives/C02K1MWEK2L/p1754345587373229

* fix port names, after user comments #1784 (comment)
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