probe: move cordon buttons to kubernetes probe

This commit is contained in:
Deepak
2021-01-18 23:46:21 +05:30
parent ce2180f24e
commit 71b4409958
7 changed files with 27 additions and 7 deletions

View File

@@ -113,6 +113,9 @@ func controlsFor(topology report.Topology, nodeID string) []ControlInstance {
}
for _, controlID := range node.ActiveControls() {
if control, ok := topology.Controls[controlID]; ok {
if control.ProbeID != "" { // does this Control have an override for the node probe?
probeID = control.ProbeID
}
result = append(result, ControlInstance{
ProbeID: probeID,
NodeID: nodeID,