Skip to content
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

Reorganise the render/ package #1360

Merged
merged 3 commits into from
Apr 22, 2016
Merged

Reorganise the render/ package #1360

merged 3 commits into from
Apr 22, 2016

Conversation

tomwilkie
Copy link
Contributor

@tomwilkie tomwilkie commented Apr 20, 2016

Aim here is for no code changes, but to break down mapping.go and topology.go into separate files for each topology, which container both the mapping functions and the topology renderers.

@tomwilkie tomwilkie force-pushed the render-reorg branch 4 times, most recently from f2fffb6 to 11b9a6f Compare April 21, 2016 12:55
@tomwilkie tomwilkie self-assigned this Apr 21, 2016
@tomwilkie tomwilkie changed the title Reorganise the render/ package [WIP] Reorganise the render/ package Apr 21, 2016
@tomwilkie tomwilkie changed the title [WIP] Reorganise the render/ package Reorganise the render/ package Apr 22, 2016
@@ -381,6 +382,7 @@ var (
kubernetes.PodState: "running",
kubernetes.PodContainerIDs: ServerContainerID,
kubernetes.ServiceIDs: ServiceID,
report.HostNodeID: ServerHostNodeID,

This comment was marked as abuse.

This comment was marked as abuse.

@paulbellamy
Copy link
Contributor

paulbellamy commented Apr 22, 2016

The files in this seem structured to match the probes (docker, kubernetes, process). Thoughts about having one-file-per-target? i.e. making them match app/api_topologies.go instead?

@paulbellamy
Copy link
Contributor

Discussed elsewhere, to rename the files according to "top-level" renderer (i.e. "process", "container", "pod", and "host"), then each file includes any sub-views (so ContainerHostname view goes in "container").

@tomwilkie
Copy link
Contributor Author

@paulbellamy PTAL.

@paulbellamy paulbellamy merged commit f727bd6 into master Apr 22, 2016
@paulbellamy paulbellamy deleted the render-reorg branch April 22, 2016 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants