-
Notifications
You must be signed in to change notification settings - Fork 1.5k
design: Add resource dependency graph. #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
design: Add resource dependency graph. #100
Conversation
ff32dda to
6864274
Compare
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
6864274 to
9ad342e
Compare
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
|
@wking Yeah, the 2nd commit is in WIP state, I was just saving some of the progress. |
7b19963 to
1404eef
Compare
|
I expanded the tls assets, ptal @crawford |
|
/retest |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
|
@yifan-gu none of the TLS assets depend on the install config in your graph. |
|
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. |
0223598 to
6e86a25
Compare
@crawford What's in your mind on |
974d0cd to
622befd
Compare
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
2c6d9b9 to
bccea0b
Compare
|
can we add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misc_manifests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
c803e5b to
f06bc38
Compare
|
@abhinavdahiya Added |
There was a problem hiding this comment.
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.
f06bc38 to
f582831
Compare
|
/lgtm |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Update bmh crd
Moving powervs_regions.go out of the rhcos package and into a powervs package.
Add the resource_dep.dot and its generated svg graph file.