-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
k9s interprets [] characters in a weird way #3051
Comments
I can confirm this issue for When editing a secret like this, and copying this content to paste it elsewhere, we go from this: #original content
values.yaml: |-
prometheus:
prometheusSpec:
additionalScrapeConfigs:
- params:
'match[]':
- '*' To this #pasted elsewhere
values.yaml: |-
prometheus:
prometheusSpec:
additionalScrapeConfigs:
- params:
'match]': #<----- Missing [ from the copy
- '*' OS used for this test: Macos 15.2
I could not reproduce this error on ubuntu 24.04.1 LTS either the logs or secrets. Seems like the issue is OS related - and impacts only secrets and Logs ? |
The problem is not present in k9s 0.31.9. |
Describe the bug
K9s seems to have problem "escaping" [ and ] characters. Since a few versions (using 0.32.7 here). The problem wasn't here before. It causes problems when watching logs of a pod or when I copy the content of the secret from the cluster/k9s to my Mac.
To Reproduce
Steps to reproduce the behavior
match[]
in itYou can see the same problem by reading the log of a pod which contains both characters.
Expected behavior
Both characters should be displayed correctly. By the way, when using
kubectl
, the problem doesn't appear for instance when reading logs.Screenshots
Example in logs of a pod:
See the problem here, we should see
[date][level]
but instead some characters are added or mis interpreted. Kubectl doesn't have this problem (same pod here):Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: