Add dependencies section and topology graph #29
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Application CRD contains a new field "dependencies" now. This field
can be used to specify other applications as dependency for an
application. This dependecies are then used during the startup of kobs
to generate a list of nodes (clusters, namespaces, applications) and a
list of edges (dependencies between applications). The list of nodes and
edges is then used to create a topology graph using Cytoscape.js.
The user can switch the views in the applications page between the
gallery mode and the new topology view. In the same as it is in the
gallery view, the user can filter the applications by cluster and
namespace. A user can also select an application (node) in the topology
graph to show the drawer with the application details.
We also adjusted the demo for the new topology graph feature. For that
we have added more Application CRs and added a dependency section to all
CRs.
To add this new feature we also had to move the logic for fetching the
applications to the gallery component. We also renamed the component to
have a consistent style for the component nameing.