-
Notifications
You must be signed in to change notification settings - Fork 130
feat(pods): add optional tail parameter to pod logs retrieval #335
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
Conversation
9599fbc
to
3ec7f1c
Compare
cc: @manusa |
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.
LGTM
@ardaguclu can you please take a look
pkg/toolsets/core/pods.go
Outdated
// Extract tailLines parameter | ||
tailLines := params.GetArguments()["tailLines"] | ||
var tailLinesInt int64 | ||
if tailLines != nil { |
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.
structured output will eliminate all these manual casting. This is not ideal. But for now, I don't see any alternative way.
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.
That should be the second step once we migrate to go-sdk
…t 256 lines Signed-off-by: iamsudip <[email protected]>
@ardaguclu @manusa I have addressed review comments. |
Signed-off-by: iamsudip <[email protected]>
Thank you, this PR looks good to me |
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.
Code looks good, thx!
Tool schemas for validation need updating. I can do this for you if you want.
…t 256 lines Signed-off-by: Marc Nuri <[email protected]>
Fixes #297