-
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
implemented fetching rules from a remote server for conditional gathering #583
implemented fetching rules from a remote server for conditional gathering #583
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Sergey1011010 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 |
5372a5f
to
5325642
Compare
ed8ff02
to
36e1625
Compare
d284431
to
37a8a23
Compare
55079ec
to
a31e046
Compare
}, | ||
}, | ||
} | ||
|
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.
Some of these conditions are not currently defined by the new service. Can you please create a task to update it?
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.
RedHatInsights/insights-operator-gathering-conditions#10
I'll also update the tag in the service once this one is merged to trigger a new build of the service
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.
Thank you
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.
The service update PR RedHatInsights/insights-operator-gathering-conditions-service#140
return "", fmt.Errorf("gathering rules service client is nil") | ||
} | ||
|
||
rulesBytes, err := g.gatheringRulesServiceClient.RecvGatheringRules(ctx, config.ConditionalGathererEndpoint) |
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.
What about adding some info log around here please? Something like fetching or pulling the conditions from endpoint bla bla bla?
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.
done
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 thought it would be good to put the endpoint URL in the log. Theoretically, it can happen that someone sets wrong endpoint and then it can help when troubleshooting.
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.
done
pkg/controller/controller.go
Outdated
@@ -0,0 +1,58 @@ | |||
package controller |
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 rename this file since it has nothing to do with controller right? Perhaps kubeconfigs.go
or something like that.
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.
done
I reviewed this one couple times. Good job. Thank you. |
/lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/label docs-approved |
/label qe-approved |
/label px-approved |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@Sergey1011010: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Categories
Sample Archive
No changes
Documentation
README.md
docs/conditional-gatherer/README.md
Unit Tests
pkg/gatherers/conditional/conditional_gatherer_test.go
pkg/gatherers/conditional/parsing_test.go
Privacy
No new data was collected
Changelog
No
Breaking Changes
No
References
https://issues.redhat.com/browse/CCXDEV-7163
https://bugzilla.redhat.com/show_bug.cgi?id=???
https://access.redhat.com/solutions/???