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

Missing newline after progress bar #99

Closed
roberthstrand opened this issue Mar 28, 2023 · 5 comments · Fixed by #237
Closed

Missing newline after progress bar #99

roberthstrand opened this issue Mar 28, 2023 · 5 comments · Fixed by #237
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@roberthstrand
Copy link
Member

When you run k8sgpt analyze and get multiple errors, the first one's number is stuck at the top with the progress bar. The same happens when running with output set to JSON, but with the opening code bracket.

❯ ./k8sgpt analyze
   0% |                                                                                                                                                                                                                                                       | (0/4, 0 it/hr) [0s:0s]0 
kube-system/kube-prometheus-stack-kube-scheduler(kube-prometheus-stack-kube-scheduler): Service has no endpoints, expected label component=kube-scheduler 

1 kube-system/kube-prometheus-stack-kube-controller-manager(kube-prometheus-stack-kube-controller-manager): Service has no endpoints, expected label component=kube-controller-manager 

2 kube-system/kube-prometheus-stack-kube-etcd(kube-prometheus-stack-kube-etcd): Service has no endpoints, expected label component=etcd 

3 kube-system/kube-prometheus-stack-kube-proxy(kube-prometheus-stack-kube-proxy): Service has no endpoints, expected label k8s-app=kube-proxy
 ❯ ./k8sgpt analyze -o json
   0% |                                                                                                                                                                                                                                                          | (0/4, 0 it/hr) [0s:0s]{
"kind":"Service","name":"kube-system/kube-prometheus-stack-kube-etcd","error":["Service has no endpoints, expected label component=etcd"],"details":"","parentObject":"kube-prometheus-stack-kube-etcd"}
{"kind":"Service","name":"kube-system/kube-prometheus-stack-kube-proxy","error":["Service has no endpoints, expected label k8s-app=kube-proxy"],"details":"","parentObject":"kube-prometheus-stack-kube-proxy"}
{"kind":"Service","name":"kube-system/kube-prometheus-stack-kube-scheduler","error":["Service has no endpoints, expected label component=kube-scheduler"],"details":"","parentObject":"kube-prometheus-stack-kube-scheduler"}
{"kind":"Service","name":"kube-system/kube-prometheus-stack-kube-controller-manager","error":["Service has no endpoints, expected label component=kube-controller-manager"],"details":"","parentObject":"kube-prometheus-stack-kube-controller-manager"}

This is on macOS Ventura 13.2, tried with both fish and bash, and with both regular built in terminal and Hyper terminal.

@roberthstrand roberthstrand added the bug Something isn't working label Mar 28, 2023
@AlexsJones AlexsJones added good first issue Good for newcomers help wanted Extra attention is needed labels Mar 28, 2023
@roberthstrand roberthstrand moved this to Todo in Backlog Mar 30, 2023
@ArslanYM
Copy link

Can i work on this ?

@Tanmoy037
Copy link

@ArslanYM I also tried this but the issue is only for macOS Ventura 13.2, I use ubuntu 22.04, and it's working here. If you're macOS Ventura 13.2 user, give it a try and share you're approach or solution here.

@ArslanYM
Copy link

@ArslanYM I also tried this but the issue is only for macOS Ventura 13.2, I use ubuntu 22.04, and it's working here. If you're macOS Ventura 13.2 user, give it a try and share you're approach or solution here.

thanks for the heads up.

@thschue thschue assigned thschue and roberthstrand and unassigned thschue Mar 31, 2023
@roberthstrand roberthstrand moved this from Todo to In Progress in Backlog Apr 1, 2023
@thschue
Copy link
Contributor

thschue commented Apr 5, 2023

This should be fixed with #217

@thomasstxyz
Copy link
Contributor

I also see this behavior (on Mac OS Ventura 13.2.1, M1) on latest commit 9423b53.

$ ./k8sgpt analyze --explain
   0% |                                                      | (0/4, 0 it/hr) [0s:0s]error getting completion: error, status code: 429, message: You exceeded your current quota, please check your plan and billing details.
Exhausted API quota. Please try again later

image

thomasstxyz added a commit to thomasstxyz/k8sgpt that referenced this issue Apr 10, 2023
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
@github-project-automation github-project-automation bot moved this from In Progress to Done in Backlog Apr 10, 2023
AlexsJones pushed a commit that referenced this issue Apr 11, 2023
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
6 participants