-
Notifications
You must be signed in to change notification settings - Fork 157
LOG-6661: fix inconsistency for syslog facillity and severity templating #2958
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-6661: fix inconsistency for syslog facillity and severity templating #2958
Conversation
@jcantrill: This pull request references LOG-6661 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 bug to target the "4.8.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcantrill 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 |
242ce08
to
7ccdd8a
Compare
/hold |
/test unit |
/hold cancel |
@@ -112,8 +112,8 @@ var _ = Describe("vector syslog clf output", func() { | |||
spec.Syslog = &obs.Syslog{ | |||
URL: "tls://logserver:6514", | |||
RFC: obs.SyslogRFC5424, | |||
Facility: "$$.message.facility", | |||
Severity: "$$.message.severity", | |||
Facility: `{.facility||"none"}`, |
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 think "none" is not correct fallback value
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 don't think it matters for the context of the test
api/observability/v1/output_types.go
Outdated
@@ -1099,6 +1100,7 @@ type Syslog struct { | |||
// local0 local1 local2 local3 local4 local5 local6 local7 | |||
// | |||
// +kubebuilder:validation:Optional | |||
// +kubebuilder:validation:Pattern:=`^\{(\.[a-zA-Z0-9_]+|\."[^"]+")(\.[a-zA-Z0-9_]+|\."[^"]+")*\}$` |
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.
pattern not match kernel
and other words without {}
api/observability/v1/output_types.go
Outdated
@@ -1083,6 +1083,7 @@ type Syslog struct { | |||
// Emergency Alert Critical Error Warning Notice Informational Debug | |||
// | |||
// +kubebuilder:validation:Optional | |||
// +kubebuilder:validation:Pattern:=`^\{(\.[a-zA-Z0-9_]+|\."[^"]+")(\.[a-zA-Z0-9_]+|\."[^"]+")*\}$` |
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.
pattern not match word without {}
/hold |
7ccdd8a
to
4ab008d
Compare
/hold cancel |
/lgtm |
/test unit |
/test functional |
@jcantrill: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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-sigs/prow repository. |
/test functional-target |
/test e2e-target |
/test e2e-target |
2 similar comments
/test e2e-target |
/test e2e-target |
@jcantrill: 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-sigs/prow repository. I understand the commands that are listed here. |
/cherrypick release-6.1 |
@jcantrill: new pull request created: #2963 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-sigs/prow repository. |
Description
This change:
$$.message.foo
)Links