Skip to content

Commit

Permalink
Include CustomRuns in failed integration test YAML dump
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
  • Loading branch information
abayer authored and tekton-robot committed Feb 8, 2023
1 parent 57a21f5 commit 2da10fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,15 @@ func getCRDYaml(ctx context.Context, cs *clients, ns string) ([]byte, error) {
printOrAdd(i)
}

v1beta1CustomRuns, err := cs.V1beta1CustomRunClient.List(ctx, metav1.ListOptions{})
if err != nil {
return nil, fmt.Errorf("could not get v1beta1 customruns: %v", err)
}
for _, i := range v1beta1CustomRuns.Items {
i.SetManagedFields(nil)
printOrAdd(i)
}

pods, err := cs.KubeClient.CoreV1().Pods(ns).List(ctx, metav1.ListOptions{})
if err != nil {
return nil, fmt.Errorf("could not get pods: %w", err)
Expand Down

0 comments on commit 2da10fc

Please sign in to comment.