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

Fix pod scheduling in E2E #212

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

tpantelis
Copy link
Contributor

addNodeSelectorRequirement hard-codes the Operator and Values fields
and thus a non-gateway node is always selected for the connectivity check
pods. Use the parameters.

Signed-off-by: Tom Pantelis tompantelis@gmail.com

addNodeSelectorRequirement hard-codes the Operator and Values fields
and thus a non-gateway node is always selected for the connectivity check
pods. Use the parameters.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Copy link
Contributor

@mkolesnik mkolesnik left a comment

Choose a reason for hiding this comment

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

LGTM

}

func addNodeSelectorRequirement(nodeSelReqs []v1.NodeSelectorRequirement, label string,
op v1.NodeSelectorOperator, values []string) []v1.NodeSelectorRequirement {
return append(nodeSelReqs, v1.NodeSelectorRequirement{
Key: label,
Operator: v1.NodeSelectorOpNotIn,
Values: []string{"true"},
Operator: op,
Copy link
Contributor

Choose a reason for hiding this comment

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

ouch!!!! good catch.

@mangelajo mangelajo merged commit 8da8298 into submariner-io:master Nov 13, 2019
@tpantelis tpantelis deleted the fix_pod_scheduling branch December 2, 2019 15:23
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