Skip to content

Commit

Permalink
chore(e2e): more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Oct 26, 2023
1 parent c8b936d commit 810a12e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions e2e/support/util/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ func Dump(ctx context.Context, c client.Client, ns string, t *testing.T) error {
if err != nil {
return err
}
t.Logf("Found %d catalogs:\n", len(cats.Items))
t.Logf("Found %d catalogs (showing status only):\n", len(cats.Items))
for _, c := range cats.Items {
ref := c
ref := c.Status
cdata, err := kubernetes.ToYAMLNoManagedFields(&ref)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / builder-it (Spectrum)

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / telemetry-it

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / common-it-custom-operator-installation

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / non-olm

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / knative-test

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / builder-it (Jib)

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / common-it-single-operator-installation

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / olm

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / yaks-test

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)

Check failure on line 199 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / upgrade

cannot use &ref (value of type *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus) as "k8s.io/apimachinery/pkg/runtime".Object value in argument to kubernetes.ToYAMLNoManagedFields: *"github.com/apache/camel-k/v2/pkg/apis/camel/v1".CamelCatalogStatus does not implement "k8s.io/apimachinery/pkg/runtime".Object (missing method DeepCopyObject)
if err != nil {
return err
Expand Down Expand Up @@ -256,6 +256,21 @@ func Dump(ctx context.Context, c client.Client, ns string, t *testing.T) error {
}
t.Logf("---\n%s\n---\n", string(data))
}
// OLM Subscriptions
subs := olm.Subscriptions{}

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / builder-it (Spectrum)

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / telemetry-it

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / common-it-custom-operator-installation

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / non-olm

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / knative-test

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / builder-it (Jib)

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / common-it-single-operator-installation

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / olm

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / yaks-test

undefined: olm.Subscriptions

Check failure on line 260 in e2e/support/util/dump.go

View workflow job for this annotation

GitHub Actions / upgrade

undefined: olm.Subscriptions
err = c.List(ctx, &subs, ctrl.InNamespace(ns))
if err != nil {
return err
}
t.Logf("\nFound %d OLM Subscriptions:\n", len(subs.Items))
for _, sub := range subs.Items {
ref := sub
data, err := kubernetes.ToYAMLNoManagedFields(&ref)
if err != nil {
return err
}
t.Logf("---\n%s\n---\n", string(data))
}

// Some log from running pods

Expand Down

0 comments on commit 810a12e

Please sign in to comment.