Skip to content

Commit

Permalink
Merge pull request #13 from rajatjindal/add-ready-pods
Browse files Browse the repository at this point in the history
print ready replicas status
  • Loading branch information
rajatjindal committed Feb 9, 2024
2 parents dc194e6 + 8591817 commit d7bdd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
func printApps(w io.Writer, apps ...spinv1.SpinApp) {
table := uitable.New()
table.MaxColWidth = 50
table.AddRow("NAMESPACE", "NAME", "EXECUTOR", "REPLICAS")
table.AddRow("NAMESPACE", "NAME", "EXECUTOR", "READY")

for _, app := range apps {
table.AddRow(app.Namespace, app.Name, app.Spec.Executor, app.Spec.Replicas)
table.AddRow(app.Namespace, app.Name, app.Spec.Executor, fmt.Sprintf("%d/%d", app.Status.ReadyReplicas, app.Spec.Replicas))
}

fmt.Fprintln(w, table)
Expand Down

0 comments on commit d7bdd0c

Please sign in to comment.