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: pass rest.Config to avoid flag issue in library #1626

Merged

Conversation

joelanford
Copy link
Member

Description of the change:

  • Pass rest.Config to metrics.CreateMetricsService function and remove code from metrics package that uses controller-runtime's config package to get config.
  • Update relevant docs and scaffolds

Motivation for the change:
controller-runtime's config package declares flags for kubeconfig and master API server, which is causing problems due to double flag declarations in the test framework.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 1, 2019
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.

This should have a CHANGELOG update because its user-facing.

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 Jul 1, 2019
@joelanford
Copy link
Member Author

@AlexNPavel @lilic will this resolve the issue that we discussed offline?

Copy link
Contributor

@AlexNPavel AlexNPavel left a comment

Choose a reason for hiding this comment

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

This should fix the issues with that PR.
LGTM

Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM

@joelanford joelanford merged commit 5507e00 into operator-framework:master Jul 2, 2019
@joelanford joelanford deleted the metrics-pass-config branch July 2, 2019 01:47
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants