/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/cmd/openshift-tests/e2e-analysis/command.go
31 строка
913 B
Johnny Liu
rename script name, and some minor fix
15 сен 2025, 21:49
15 сен 2025, 21:49
31682ef
Код
Авторство
О чём код?
package e2e_analysis import ( e2eanalysis "github.com/openshift/origin/pkg/e2eanalysis" "github.com/spf13/cobra" "k8s.io/kubectl/pkg/util/templates" ) func NewTestFailureClusterAnalysisCheckCommand() *cobra.Command { e2eAnalysisOpts := &e2eanalysis.Options{} cmd := &cobra.Command{ Use: "e2e-analysis", Short: "Performs analysis against the cluster", Long: templates.LongDesc(` Check cluster health and run some e2e analyisis, including: all machines should be in Running state; all nodes should be ready; ready node count should match or exceed running machine count; operators health ordered by dependency; and so on.`), RunE: func(cmd *cobra.Command, args []string) error { return e2eAnalysisOpts.Run() }, } cmd.Flags().StringVar(&e2eAnalysisOpts.JUnitDir, "junit-dir", e2eAnalysisOpts.JUnitDir, "The directory where test reports were written in junit xml format.") return cmd }