-
Notifications
You must be signed in to change notification settings - Fork 98
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
Bug 1825831: Refactoring collector, add Doc and doc generator #95
Bug 1825831: Refactoring collector, add Doc and doc generator #95
Conversation
/retest |
1 similar comment
/retest |
@martinkunc is there any BZ or Jira related to this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some inconsistency in godoc in some function, some include more info some not.
There's a need to document somewhere that samples and everything else are autogen, otherwise, someone might update manually.
if isHealthyOperator(&item) { | ||
// GatherMostRecentMetrics gathers cluster Federated Monitoring metrics | ||
// | ||
// The GET REST query to URL /federate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds a bit better:
Same data as GET /federate
// The Kubernetes api https://github.com/openshift/client-go/blob/master/config/clientset/versioned/typed/config/v1/clusteroperator.go#L62 | ||
// Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.html#clusteroperatorlist-v1config-openshift-io | ||
// | ||
// Location of operators in archive: config/clusteroperator/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One function creates two archives? Should we split this function?
// | ||
// Location of operators in archive: config/clusteroperator/ | ||
// see: docs/insights-archive-sample/config/clusteroperator | ||
// Location of pods in archive: config/pod/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No example for pods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to add more samples later. I just have few samples ready and it takes some time to get each prepared with the test.
// The Kubernetes api https://github.com/kubernetes/client-go/blob/master/kubernetes/typed/core/v1/node.go#L78 | ||
// Response see https://docs.openshift.com/container-platform/4.3/rest_api/index.html#nodelist-v1core | ||
// | ||
// Location in archive: config/node/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No See?
f8eec5c
to
ba24d8b
Compare
/retest |
/retitle Bug 1825831: Refactoring collector, add Doc and doc generator |
/bugzilla refresh |
@martinkunc: This pull request references Bugzilla bug 1825831, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@martinkunc: An error was encountered searching for bug 1825831 on the Bugzilla server at https://bugzilla.redhat.com:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@martinkunc: An error was encountered searching for bug 1825831 on the Bugzilla server at https://bugzilla.redhat.com:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
ba24d8b
to
1be9355
Compare
1be9355
to
fc6889b
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexandrevicenzi, dpensi, martinkunc, tremes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@martinkunc: All pull requests linked via external trackers have merged: openshift/insights-operator#95. Bugzilla bug 1825831 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The goal here is to