Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/metrics/service-monitor.go: Populate all ports #1562

Merged
merged 1 commit into from
Jun 19, 2019

Conversation

lilic
Copy link
Member

@lilic lilic commented Jun 14, 2019

Description of the change:

Whenever there are multiple ports in the Service object we take all of
them to map to the Endpoints of the ServiceMonitor object.

Motivation for the change:
This way we can have one ServiceMonitor per Service with multiple ports exposed.
I cam across this while working and testing #1560 but they don't depend on each other, so can be merged separately.

Whenever there are multiple ports in the Service object we take all of
them to map to the Endpoints of the ServiceMonitor object. This way we
can have one ServiceMonitor per Service with multiple ports exposed.
@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 14, 2019
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2019
@lilic lilic merged commit 97ba105 into operator-framework:master Jun 19, 2019
@lilic lilic deleted the servicemonitor-multi-port branch June 19, 2019 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants