Skip to content

Commit

Permalink
test: dump replica set list on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
osmman committed Sep 4, 2024
1 parent 3c9ce56 commit b60451f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions test/e2e/support/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,20 @@ func DumpNamespace(ctx context.Context, cli client.Client, ns string) {
k8s := map[string]logTarget{}

toDump := map[string]client.ObjectList{
"securesign.yaml": &v1alpha1.SecuresignList{},
"fulcio.yaml": &v1alpha1.FulcioList{},
"rekor.yaml": &v1alpha1.RekorList{},
"tuf.yaml": &v1alpha1.TufList{},
"ctlog.yaml": &v1alpha1.CTlogList{},
"trillian.yaml": &v1alpha1.TrillianList{},
"tsa.yaml": &v1alpha1.TimestampAuthorityList{},
"pod.yaml": &v1.PodList{},
"configmap.yaml": &v1.ConfigMapList{},
"deployment.yaml": &v12.DeploymentList{},
"job.yaml": &v13.JobList{},
"cronjob.yaml": &v13.CronJobList{},
"event.yaml": &v1.EventList{},
"securesign.yaml": &v1alpha1.SecuresignList{},
"fulcio.yaml": &v1alpha1.FulcioList{},
"rekor.yaml": &v1alpha1.RekorList{},
"tuf.yaml": &v1alpha1.TufList{},
"ctlog.yaml": &v1alpha1.CTlogList{},
"trillian.yaml": &v1alpha1.TrillianList{},
"tsa.yaml": &v1alpha1.TimestampAuthorityList{},
"pod.yaml": &v1.PodList{},
"configmap.yaml": &v1.ConfigMapList{},
"deployment.yaml": &v12.DeploymentList{},
"replica_set.yaml": &v12.ReplicaSetList{},
"job.yaml": &v13.JobList{},
"cronjob.yaml": &v13.CronJobList{},
"event.yaml": &v1.EventList{},
}

core.GinkgoWriter.Println("----------------------- Dumping namespace " + ns + " -----------------------")
Expand Down

0 comments on commit b60451f

Please sign in to comment.