stackabletech / nifi-operator

A kubernetes operator for Apache NiFi
Other
28 stars 3 forks source link

Use a ConfigMap for the prepared logs in the logging test #637

Closed siegfriedweber closed 1 month ago

siegfriedweber commented 2 months ago

Description

Use a ConfigMap for the prepared logs in the logging test

kubectl cp was used to directly copy the prepared logs into the NiFi pod, but this fails if the pod is restarting. This pull request creates a ConfigMap with the prepared logs and mounts it into the log path of the vector container.

Definition of Done Checklist

# Author
- [x] Integration tests passed (for non trivial changes)
# Reviewer
- [ ] Code contains useful comments
- [ ] Code contains useful logging statements
- [ ] (Integration-)Test cases added
- [ ] Documentation added or updated. Follows the [style guide](https://docs.stackable.tech/home/nightly/contributor/docs-style-guide).
- [ ] 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
- [ ] [Roadmap](https://github.com/orgs/stackabletech/projects/25/views/1) has been updated
siegfriedweber commented 1 month ago

:white_check_mark: https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/nifi-operator-it-custom/59/

OpenSearch Dashboard with prepared logs&_a=(columns:!(level,namespace,cluster,pod,container,message,t2_cluster),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:t2-product,key:t2_cluster,negate:!f,params:(query:'7b7b6963-2ed1-47f6-9ce3-7cdc2c614373'),type:phrase),query:(match_phrase:(t2_cluster:'7b7b6963-2ed1-47f6-9ce3-7cdc2c614373'))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:t2-product,key:container,negate:!f,params:(query:prepared-logs),type:phrase),query:(match_phrase:(container:prepared-logs)))),index:t2-product,interval:auto,query:(language:kuery,query:''),sort:!()))