-
Notifications
You must be signed in to change notification settings - Fork 712
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
Stop reporting ReplicaSets #2957
Conversation
probe/kubernetes/reporter.go
Outdated
@@ -446,7 +393,7 @@ func match(namespace string, selector labels.Selector, topology, id string) func | |||
} | |||
} | |||
|
|||
func (r *Reporter) podTopology(services []Service, replicaSets []ReplicaSet, daemonSets []DaemonSet, statefulSets []StatefulSet, cronJobs []CronJob) (report.Topology, error) { | |||
func (r *Reporter) podTopology(services []Service, daemonSets []DaemonSet, statefulSets []StatefulSet, cronJobs []CronJob, deployments []Deployment) (report.Topology, error) { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
report.ReplicaSet, | ||
report.MakeReplicaSetNodeID(replicaSet.UID()), | ||
report.Deployment, | ||
report.MakeDeploymentNodeID(deployment.UID()), |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Also, add Deployment as Pod parent.
e51adfe
to
b522443
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.
LGTM.
Per #2662 (comment), please file an issue to move the logic from selectPodsWithDeployments.Render()
to Report.Upgrade()
.
Also, add Deployment as Pod parent.
Fixes #2662