Skip to content

Commit 8631993

Browse files
authored
Merge pull request #485 from devspace-cloud/cloud-refactor
Check events on pod problems
2 parents ac172b6 + 9fe82c3 commit 8631993

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (cmd *DeployCmd) Run(cobraCmd *cobra.Command, args []string) {
142142

143143
log.Donef("Successfully deployed!")
144144
if generatedConfig.CloudSpace != nil {
145-
log.Infof("Run: \n- `%s` to open the app in the browser\n- `%s` to open a shell to the container\n- `%s` to open the management ui\n- `%s` to analyze the space for potential issues", ansi.Color("devspace open", "white+b"), ansi.Color("devspace enter", "white+b"), ansi.Color("devspace ui", "white+b"), ansi.Color("devspace analyze", "white+b"))
145+
log.Infof("Run: \n- `%s` to open the app in the browser\n- `%s` to open a shell into the container\n- `%s` to show the container logs\n- `%s` to open the management ui\n- `%s` to analyze the space for potential issues", ansi.Color("devspace open", "white+b"), ansi.Color("devspace enter", "white+b"), ansi.Color("devspace logs", "white+b"), ansi.Color("devspace ui", "white+b"), ansi.Color("devspace analyze", "white+b"))
146146
} else {
147147
log.Infof("Run `%s` to check for potential issues", ansi.Color("devspace analyze", "white+b"))
148148
}

pkg/devspace/analyze/analyze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func CreateReport(config *rest.Config, namespace string, noWait bool) ([]*Report
6262
}
6363

6464
// We only check events if we suspect a problem
65-
checkEvents := false
65+
checkEvents := len(report) > 0
6666

6767
// Analyze replicasets
6868
replicaSetProblems, err := ReplicaSets(client, namespace)

0 commit comments

Comments
 (0)