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

Support controls in more k8s topologies #3110

Merged
merged 4 commits into from
Mar 16, 2018
Merged

Conversation

rndstr
Copy link
Contributor

@rndstr rndstr commented Mar 15, 2018

Adds the ability for more k8s topologies to have controls displayed in the frontend by plugins. Namely Service, DaemonSet, StatefulSet, Cronjob.

Fixes #3107

@rndstr rndstr requested a review from rade March 15, 2018 23:36
Copy link
Member

@rade rade left a comment

Choose a reason for hiding this comment

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

There's one change I commented on that we should definitely make.

Other than that, the repetition is annoying. An alternative would be to perform a post-processing walk of the topologies that adds the report.ControlProbeID to all nodes. That could be used for the existing control-ful topologies - containers, pods - too. i.e. somewhere we could simply have a "list of topologies that should have controls".

The main downside would be the extra memory allocation required to perform the update. I suspect @bboreham won't let us do that ;)

Also, I was surprised to see no changes to tests.

if err != nil {
return result, err
}
cronJobTopology, cronJobs, err := r.cronJobTopology()
cronJobTopology, cronJobs, err := r.cronJobTopology(r.probeID)

This comment was marked as abuse.

rndstr added 3 commits March 16, 2018 10:05
Controls for nodes generally need to know about the probe that is in
control of them.

This PR appends the probe ID info to k8s topologies CronJob, DaemonSet,
Service, and StatefulSet. Therefore allowing plugins to append controls.
@rndstr rndstr force-pushed the 3107-service-controls branch from fc0b5de to d3231c6 Compare March 16, 2018 17:11
@rndstr
Copy link
Contributor Author

rndstr commented Mar 16, 2018

@rade PTAL

@rndstr rndstr merged commit 3de06b5 into master Mar 16, 2018
@rndstr rndstr deleted the 3107-service-controls branch March 16, 2018 19:40
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