Add max log requests for stern tailer #522
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request
What this PR does / why we need it
With Stern new version (v1.24.0), a new flag was introduced to decide which is the maximum number of concurrent requests. In Apps Plugin code, it never gets to have a default number other than 0, that's why, if not specified in Stern configuration, logs would never appear since there weren't any allowed logs to show.
A number of the maximum Int16 (32767) was set as the max log requests for Stern, which means there can be up to that amount of pods logging at the same time for Apps Plugin
workload tail
orworkload create/update/apply --tail
to work.Another change introduced in Stern was the
ALL_STATES
option for containers state filter. It was also added in Apps Plugin so all containers are shown (running,waiting,terminated
).Which issue(s) this PR fixes
Fixes #519
Describe testing done for PR
--tail
option to check that is logging.Additional information or special notes for your reviewer