coreos / tectonic-forum

Apache License 2.0
30 stars 9 forks source link

Stateless Application Operator with nested CRD crashing tectonic-console web-application. #289

Open steigr opened 6 years ago

steigr commented 6 years ago

Issue Report Template

Tectonic Version

1.8.9-tectonic.1

Environment

Expected Behavior

I want to view the SAO-generated resources, even with nested custom resources, without browser crash under https://console.tectonicsandbox.com/applications/ns/default/application-operator.v0.0.1/Application:application.example.com:v1alpha1/mytestapp/resources .

Actual Behavior

The browser got stuck in an infinite loop with the following output on browser console:

kindObj: no model for kind Database
No model registered for Database

Where Database is a custom resource created by one SAO via another custom resource (via another SAO).

Reproduction Steps

  1. create SAO for one application type (e.g. "Database").
  2. create another SAO (e.g. "Application") which creates a custom resource for the first SAO (a "? Database").
  3. Create a custom resource for the 2nd SOA (e.g. "mytestapp").
  4. View "resources" within the 2nd SAO-generated instance.

Other Information

I can provide example code if needed.

ecordell commented 6 years ago

Thanks for trying this out and finding this issue.

The current incarnation of the helm SAO doesn't do too much to help you set up relationships between different ClusterServiceVersions. Could you show us the ClusterServiceVersions that were created for your "application" and "database" operators?

If possible, it would also help to see the charts you're loading into both operators.