Skip to content
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

Pod logs containing brackets not in k9s logs output #1398

Closed
maikelvl opened this issue Dec 23, 2021 · 2 comments
Closed

Pod logs containing brackets not in k9s logs output #1398

maikelvl opened this issue Dec 23, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@maikelvl
Copy link




Describe the bug
Having a pod which logs brackets '[ ]' don't show up in the k9s logs output.

To Reproduce
Steps to reproduce the behavior:

  1. Create a pod which logs something with brackets:
cat << EOF | kubectl apply-f -
apiVersion: v1
kind: Pod
metadata:
  name: bracket-test
spec:
  restartPolicy: Never
  containers:
  - name: create
    image: docker.io/library/alpine:3.15
    command:
    - ash
    - -cex
    - |
      echo '{"foo":["bar"]}'
EOF
  1. Use k9s to see the logs. You will see:
{"foo":}
+ echo '{"foo":}'

Expected behavior
Using kubectl logs -f bracket-test to see the logs. You will see:

{"foo":["bar"]}
+ echo '{"foo":["bar"]}'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ```

**Versions (please complete the following information):**
 - OS: Both macOS 11.5 and Windows 10
 - K9s: v0.25.15
 - K8s: v1.15.12 - v1.22.4

**Additional context**
The last version this still worked was v0.24.x
@maikelvl maikelvl changed the title Pod logs containing brackets being emptied Pod logs containing brackets not in k9s logs output Dec 23, 2021
@derailed derailed added the bug Something isn't working label Dec 24, 2021
@derailed
Copy link
Owner

@maikelvl Great catch! Thank you let's see how we fair on the latest...

@maikelvl
Copy link
Author

Awesome! It works 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants