Skip to content

Update health monitor to also use better node matching logic#143

Merged
disrani-px merged 2 commits intonode_internalipfrom
node_internalip_monitor
Sep 14, 2018
Merged

Update health monitor to also use better node matching logic#143
disrani-px merged 2 commits intonode_internalipfrom
node_internalip_monitor

Conversation

@disrani-px
Copy link
Copy Markdown
Contributor

Also updated test verification

@disrani-px disrani-px requested a review from harsh-px September 14, 2018 02:54
@disrani-px disrani-px force-pushed the node_internalip_monitor branch from 4292d80 to 338e640 Compare September 14, 2018 03:02
// The driver might not return fully qualified hostnames, so check if the short
// hostname matches too
func isHostnameMatch(driverHostname string, k8sHostname string) bool {
if driverHostname == k8sHostname {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: can be made shorter with if driverHostname == k8sHostname || strings.HasPrefix(k8sHostname, driverHostname+".") {. Your call.

@disrani-px disrani-px merged commit 6da5bca into node_internalip Sep 14, 2018
@disrani-px disrani-px deleted the node_internalip_monitor branch October 13, 2018 03:04
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