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

Create metrics service only when running in k8s cluster #444

Merged
merged 2 commits into from
May 28, 2019

Conversation

pavolloffay
Copy link
Member

Resolves #441

Signed-off-by: Pavol Loffay [email protected]

@pavolloffay pavolloffay requested a review from objectiser May 28, 2019 12:42
log.Fatal(err)
} else if operatorService != nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

This check was missing there. The ExposeMetricsPort returns nil, nil if the code does not run inside the k8s cluster.

@codecov
Copy link

codecov bot commented May 28, 2019

Codecov Report

Merging #444 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #444   +/-   ##
=======================================
  Coverage   91.11%   91.11%           
=======================================
  Files          64       64           
  Lines        3130     3130           
=======================================
  Hits         2852     2852           
  Misses        196      196           
  Partials       82       82

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18d5077...347bcaa. Read the comment docs.

Copy link
Contributor

@objectiser objectiser left a comment

Choose a reason for hiding this comment

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

LGTM - only one minor style comment

log.Fatal(err)
} else if operatorService != nil {
err = setOwnerReference(operatorService)
Copy link
Contributor

Choose a reason for hiding this comment

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

minor point: could be if err = setOwnerReference(operatorService); err != nil {

Signed-off-by: Pavol Loffay <[email protected]>
@pavolloffay pavolloffay merged commit 5c61e4e into jaegertracing:master May 28, 2019
@jpkrohling jpkrohling mentioned this pull request Jun 6, 2019
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 run is broken
2 participants