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

Commit c0b37d4

Browse files
Merge pull request #1794 from ibuildthecloud/inactive-fix
Don't hide inactive top level acorn
2 parents 68b648f + 724e685 commit c0b37d4

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)