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

Disable host and endpoint reporting in Kubernetes cluster mode #3419

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

bboreham
Copy link
Collaborator

@bboreham bboreham commented Nov 5, 2018

When the probe is run with --probe.kubernetes.role=cluster, disable host reporting and endpoint reporting since it duplicates what is being done by the per-host probe.

This was missed from #3274

When the probe is run with --probe.kubernetes.role=cluster, disable
host reporting and endpoint reporting since it duplicates what is
being done by the per-host probe.
SpyProcs: flags.spyProcs,
UseConntrack: flags.useConntrack,
WalkProc: flags.procEnabled,
UseEbpfConn: flags.useEbpfConn,
Copy link
Member

Choose a reason for hiding this comment

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

Since this now only executes in the non-k8s-cluster-role case, you can get rid of the code that clears all these flags in

case kubernetesRoleCluster:
.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I thought it was better left as-is than to cherry-pick those that are used now. It’s clearer.

Copy link
Member

Choose a reason for hiding this comment

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

but none of the flags set earlier on are used anymore, except for the two that are clearly kubernetes related, i.e.

		flags.kubernetesKubeletPort = 0
		flags.kubernetesEnabled = true

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess the fact that we are having this debate proves my point, but still, I see spyProcs cleared on line 118 and used on line 126.

@bboreham bboreham merged commit 5798d04 into master Nov 6, 2018
@bboreham bboreham deleted the disable-reporting-k8s-cluster branch November 6, 2018 08: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.

None yet

2 participants