-
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
Use Kubernetes node name to filter pods if possible #2556
Conversation
To be effective, this requires an associated change in launch-generator for the next release of Scope (CC @errordeveloper ) |
reporter := &Reporter{ | ||
client: client, | ||
pipes: pipes, | ||
probeID: probeID, | ||
probe: probe, | ||
hostID: hostID, | ||
handlerRegistry: handlerRegistry, | ||
nodeName: nodeName, |
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.
@bboreham Can you please fix the tests? |
5e8c0a0
to
88ca981
Compare
kubeletPort uint | ||
} | ||
|
||
// NewReporter makes a new Reporter | ||
func NewReporter(client Client, pipes controls.PipeClient, probeID string, hostID string, probe *probe.Probe, handlerRegistry *controls.HandlerRegistry, kubeletPort uint) *Reporter { | ||
func NewReporter(client Client, pipes controls.PipeClient, probeID string, hostID string, probe *probe.Probe, handlerRegistry *controls.HandlerRegistry, nodeName string, kubeletPort uint) *Reporter { |
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.
We can get the node name via the downward api, if the Scope probe is run as a pod. This needs to be done in the yaml.