Skip to content

Conversation

@Umang01-hash
Copy link
Member

@Umang01-hash Umang01-hash commented Jan 2, 2026

Pull Request Template

Description:

Screenshot 2026-01-05 at 1 59 00 PM

Checklist:

  • I have formatted my code using goimport and golangci-lint.
  • All new code is covered by unit tests.
  • This PR does not decrease the overall code coverage.
  • I have reviewed the code comments and documentation for clarity.

Thank you for your contribution!

@coolwednesday
Copy link
Member

Can we instead have a disable variable introduce ...better serves the purpose. 0 is also a valid port. Hence I do not want to use it as a boolean.

Copy link
Member

@coolwednesday coolwednesday left a comment

Choose a reason for hiding this comment

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

@Umang01-hash
Copy link
Member Author

@coolwednesday Thanks for the valuable feedback. However, setting Port 0 = disabled is an established cloud-native convention, kubernetes also follow this convention. Introducing an additional variable for disabling it will lead to user remembering multiple configs for a single feature which is not the best behaviour.

Copy link
Member

@coolwednesday coolwednesday left a comment

Choose a reason for hiding this comment

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

Okay Sure.

Copy link
Member

@coolwednesday coolwednesday left a comment

Choose a reason for hiding this comment

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

Can we also update somewhere in documentation.

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.

Make metrics disabled when port is explicitly set to 0

3 participants