Skip to content

design: Add resource dependency graph. - #100

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
yifan-gu:add_resource_dependency_graph
Aug 8, 2018
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
yifan-gu:add_resource_dependency_graph

Conversation

@yifan-gu

@yifan-gu yifan-gu commented Aug 2, 2018

Copy link
Copy Markdown
Contributor

Add the resource_dep.dot and its generated svg graph file.

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 2, 2018
@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch 3 times, most recently from ff32dda to 6864274 Compare August 2, 2018 00:27
Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a dependency?

@yifan-gu yifan-gu Aug 2, 2018 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we need the kco config for kco operator to render bootstrap control plane.

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be output to user.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add kubeconfig -> bootstrap.ign

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you break this up into all of the TLS assets?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried previously but there are 30 files, and even I bundle them in to crt key pair, there are still around 15, The result is pretty messy. I can give another try to reorganize them. BTW what's the best way to group them? Is there a way to zoom in zoom out ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't worry about it being messy. That's the job of the renderer. You could put them all into a subgraph cluster so that they are all arranged together, but I'm not sure that it's worth the effort. It might be easiest to just color nodes based on their datatype.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rank approach may break down with 15 TLS nodes (or we'll go really wide ;). How about using neato to oraganize with node shape for type (tls, op config, ...) and fill color for phase? Or gradations of color to separate types within a phase?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also color edges by command, since the installer commands are what's doing the conversion.

@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch from 6864274 to 9ad342e Compare August 2, 2018 20:24
@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 2, 2018
Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to remove the blank line here and just have:

kube_ca_bundle -> root_ca_bundle -> bootstrap_ignition;

Although I'd expect the root_ca_bundle would be used to sign the kube_ca_bundle (and therefore be an ancestor of it instead of being a descendant). Perhaps you meant:

kube_ca_bundle -> kubernetes_control_plane;

@wking wking left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also a number of key/certs which have no consumer (as of 7b19963).

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you're missing a:

platform -> install_config;

around here.

@yifan-gu

yifan-gu commented Aug 3, 2018

Copy link
Copy Markdown
Contributor Author

@wking Yeah, the 2nd commit is in WIP state, I was just saving some of the progress.

@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch from 7b19963 to 1404eef Compare August 4, 2018 00:20
@yifan-gu

yifan-gu commented Aug 4, 2018

Copy link
Copy Markdown
Contributor Author

I expanded the tls assets, ptal @crawford

@yifan-gu

yifan-gu commented Aug 6, 2018

Copy link
Copy Markdown
Contributor Author

/retest

Comment thread Documentation/design/resource_dep.svg Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this bigger?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Increased the size, but it's still displayed small on github, tho the svg file can be enlarged without losing resolution.

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is more confusing than it is helpful. I can probably be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I can remove it. I just want to illustrate the input and output. Not sure the best way to do that in pure dot graph.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is an input and an output though (other than a few exceptions).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort of, but I want to highlight the user input and the final output that will be consumed by most of users who won't touch the intermediate generated files.
Anyway, no strong opinion on that.

@crawford

crawford commented Aug 6, 2018

Copy link
Copy Markdown
Contributor

@yifan-gu none of the TLS assets depend on the install config in your graph.

@crawford

crawford commented Aug 6, 2018

Copy link
Copy Markdown
Contributor

Rather than trying to show the install targets along the side, can you just add them into the graph? That way, we know exactly which assets get output at which stage.

@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch 3 times, most recently from 0223598 to 6e86a25 Compare August 6, 2018 21:38
@yifan-gu

yifan-gu commented Aug 6, 2018

Copy link
Copy Markdown
Contributor Author

Rather than trying to show the install targets along the side, can you just add them into the graph? That way, we know exactly which assets get output at which stage.

@crawford What's in your mind on how to add them into the graph? Make them into same subgraph and title it? Or color them in the same color? Or add tags on every node to show the targets they belong? The former one won't look very different than what we have now, it will just add some borders around those nodes.

@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch 3 times, most recently from 974d0cd to 622befd Compare August 7, 2018 01:24
Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/cluster_apiserver/clusterapi_apiserver

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch 6 times, most recently from 2c6d9b9 to bccea0b Compare August 7, 2018 20:47
@abhinavdahiya

Copy link
Copy Markdown
Contributor

can we add kubeconfig -> cluster and install-config -> *.tfstate

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misc_manifests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch 2 times, most recently from c803e5b to f06bc38 Compare August 7, 2018 21:22
@yifan-gu

yifan-gu commented Aug 7, 2018

Copy link
Copy Markdown
Contributor Author

@abhinavdahiya Added

Comment thread Documentation/design/resource_dep.dot Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The label should also be clusterapi apiserver crt/key

Add the resource_dep.dot and its generated svg graph file.
@yifan-gu
yifan-gu force-pushed the add_resource_dependency_graph branch from f06bc38 to f582831 Compare August 8, 2018 01:30
@abhinavdahiya

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 8, 2018
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, yifan-gu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,yifan-gu]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
openshift-merge-robot merged commit 405901e into openshift:master Aug 8, 2018
@yifan-gu
yifan-gu deleted the add_resource_dependency_graph branch August 8, 2018 19:35
stbenjam pushed a commit to stbenjam/installer that referenced this pull request Feb 10, 2021
clnperez pushed a commit to clnperez/installer that referenced this pull request Jan 31, 2022
Moving powervs_regions.go out of the rhcos package and into a powervs package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants