-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat: add new tail_lines parameter to k8s_log module (#488) #489
feat: add new tail_lines parameter to k8s_log module (#488) #489
Conversation
The cause of the two FAILUREs both appear to be |
Thanks, @kurokobo for contributing to this collection. |
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.
Thanks for the PR. The failures are for known issues in development versions of ansible, so nothing to worry about.
SUMMARY
Add new
tail_lines
parameter tok8s_log
module to limit the number of lines to be retrieved from the end of the logs.Closes #488.
ISSUE TYPE
COMPONENT NAME
kubernetes.core.k8s_log
ADDITIONAL INFORMATION
Thanks for useful collection 😃
This is the first time to send PR to this collection, so please let me know if I'm on the wrong way.
version_added
is set to2.4.0
, but I'm not aware of the roadmap for this collection, so I'd like to know this is the right version to specify.log_lines
always contains an empty element, so iftail_lines
is set to5
, the length oflog_lines
will be 6, as noted in the comment in the test. I've considered that truncating the trailing empty element, but decided not to for the following reasons.Example tasks in playbook:
Example output: