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
LOG-3527: Collector to act as rsyslog server #2235
Conversation
@jlarriba: This pull request references LOG-3527 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target either version "4.8." or "openshift-4.8.", but it targets "Logging 5.9.0" instead. 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. |
@jlarriba: This pull request references LOG-3527 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target either version "4.8." or "openshift-4.8.", but it targets "Logging 5.9.0" instead. 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. |
/retest |
731f941
to
667e539
Compare
internal/validations/clusterlogforwarder/validate_clusterlogforwarderspec.go
Outdated
Show resolved
Hide resolved
@jlarriba please squash and rebase |
8d63f65
to
b72b80c
Compare
@syedriko squashed and rebased |
internal/validations/clusterlogforwarder/validate_clusterlogforwarderspec.go
Outdated
Show resolved
Hide resolved
internal/validations/clusterlogforwarder/validate_clusterlogforwarderspec.go
Outdated
Show resolved
Hide resolved
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.
Very solid PR. API change requested is to move the location of "port". Sgreed with some minor changes suggested b y @jcantrill. The open question is proper setting of log_type/tenant which I think we need to hash out some more.
/hold |
98b1830
to
1d5d424
Compare
/retest |
4ed00d8
to
7b0725c
Compare
/retest |
2 similar comments
/retest |
/retest |
internal/validations/clusterlogforwarder/validate_clusterlogforwarder_service_account_test.go
Show resolved
Hide resolved
case isHTTPReceiver(input) && input.Receiver.HTTP.Format != loggingv1.FormatKubeAPIAudit: | ||
badInput("invalid format specified for HTTP receiver") | ||
case isHTTPReceiver(input) && !validPort(input.Receiver.HTTP.Port): | ||
case input.Receiver != nil && input.Receiver.ReceiverTypeSpec == nil: |
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.
consider moving these to a separate file which is probably long overdue for this set of validations
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.
Instead of moving them into a separate file, I moved them to a separate func in the same file: validateReceivers, which will get validated just after Inputs.
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 have been trying nad this implies a lot of changes. Could we consider this validation re-org as candidate for its own 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.
This entire validation should be refactored. I was thinking the 'receiver' validations could be moved out, but if the work is too invasive, please ignore this comment.
internal/validations/clusterlogforwarder/validate_clusterlogforwarderspec_test.go
Outdated
Show resolved
Hide resolved
34a5485
to
77428cf
Compare
/approve |
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcantrill, jlarriba 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 |
internal/validations/clusterlogforwarder/validate_clusterlogforwarderspec.go
Outdated
Show resolved
Hide resolved
77428cf
to
95a29c1
Compare
95a29c1
to
e4dc0a7
Compare
/retest |
@jlarriba: 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. |
/lgtm |
The included modifications generate an rsyslog server configuration for Collector. This configuration does not currently apply any transformations and send the logs succesfully to Loki, which stores them.
It also applies the OutputTypeSpec to receivers so they can share common parameters between the receivers, defining a ReceiverTypeSpec.
/cc @syedriko @alanconway
/assign @jcantrill
Links
JIRA: https://issues.redhat.com/browse/LOG-3527