Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 724e685

Browse files
Don't hide inactive top level acorn
By default we hide apps that have nothing running in it. We don't want to do that for top level acorns, just nested. Signed-off-by: Darren Shepherd <[email protected]>
1 parent 68b648f commit 724e685

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cli/apps.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package cli
22

33
import (
4+
"strings"
5+
46
apiv1 "github.com/acorn-io/runtime/pkg/apis/api.acorn.io/v1"
57
cli "github.com/acorn-io/runtime/pkg/cli/builder"
68
"github.com/acorn-io/runtime/pkg/cli/builder/table"
@@ -67,7 +69,8 @@ func (a *App) Run(cmd *cobra.Command, args []string) error {
6769
}
6870

6971
func inactive(app apiv1.App) bool {
70-
return app.Status.Ready &&
72+
return strings.Contains(app.Name, ".") &&
73+
app.Status.Ready &&
7174
app.Status.Columns.Healthy == "0" &&
7275
app.Status.Columns.UpToDate == "0" &&
7376
app.Status.Columns.Message == "OK"

0 commit comments

Comments
 (0)