Skip to content

Cloudprovider node list#1

Open
timbyr wants to merge 1 commit intomasterfrom
cloudprovider-node-list
Open

Cloudprovider node list#1
timbyr wants to merge 1 commit intomasterfrom
cloudprovider-node-list

Conversation

@timbyr
Copy link

@timbyr timbyr commented Jul 7, 2016

No description provided.

@timbyr timbyr force-pushed the cloudprovider-node-list branch from c798393 to 6311ab4 Compare July 7, 2016 10:24
This will allow cloud providers to access ExternalID and ProviderID as
hostnames can be inconsistent in clouds such as OpenStack.
@timbyr timbyr force-pushed the cloudprovider-node-list branch from 6311ab4 to 2a27ef4 Compare July 7, 2016 10:29
return nil
}

hosts := hostsFromNodeList(nodes)
Copy link

@bmduffy bmduffy Jul 7, 2016

Choose a reason for hiding this comment

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

Function call signature does not match: hostsFromNodeList(nodes)
Function call definition: *func HostsFromNodeList(list api.NodeList) []string {}

Copy link
Author

Choose a reason for hiding this comment

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

There is a local function hostsFromNodeList(nodes) in servicecontroller.go

Copy link

@joe2far joe2far Jul 7, 2016

Choose a reason for hiding this comment

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

hostsFromNodeList() is only ever called after building up a NodeList using getNodeConditionPredicate() which check in the node is Unschedulable...

So (line 635-637) in hostsFromNodeList to is now redundant:
if list.Items[ix].Spec.Unschedulable {
continue
}

And can be removed.

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.

3 participants

Comments