Skip to content

Commit

Permalink
Log ARO operator on MUO e2e test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Sep 30, 2024
1 parent 0166b4d commit d287d11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ var _ = Describe("ARO Operator - MUO Deployment", Focus, MustPassRepeatedly(10),

JustAfterEach(func(ctx context.Context) {
if CurrentSpecReport().Failed() {
getOperatorFunc := clients.ConfigClient.ConfigV1().ClusterOperators().Get
operator := GetK8sObjectWithRetry(ctx, getOperatorFunc, "aro", metav1.GetOptions{})

AddReportEntry("aro-operator", operator)

deployment, err := clients.Kubernetes.AppsV1().
Deployments(managedUpgradeOperatorDeployment).
Get(ctx, managedUpgradeOperatorDeployment, metav1.GetOptions{})
Expand Down

0 comments on commit d287d11

Please sign in to comment.