stackabletech / operator-rs

A simple wrapper/framework around kube-rs to make implementing Operators/Controllers easier
Apache License 2.0
112 stars 11 forks source link

Fix the regular expression for OPA bundle builder logs #819

Closed siegfriedweber closed 3 weeks ago

siegfriedweber commented 3 weeks ago

Description

Fix the regular expression for OPA bundle builder logs

The following log entry does not contain a log message:

2024-01-01T00:00:00.000000Z  INFO bundle:

It did not match the regular expression, all fields like the timestamp, level and logger were ignored and the following error was added to the event:

Log event not parsable: function call error for "parse_regex" at (122:276): could not find any pattern matches

This pull request changes the regular expression to allow an empty message. All other fields are processed correctly and the log event is marked with "Message not found.".

Definition of Done Checklist

# Author
- [x] Integration tests passed (only locally tested)
# Reviewer
- [ ] Code contains useful comments
- [ ] (Integration-)Test cases added
- [ ] Documentation added or updated
- [ ] Changelog updated
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
# Acceptance
- [ ] Feature Tracker has been updated
- [ ] Proper release label has been added