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

Fixes to use empty labelSelector #557

Merged

Conversation

anubhav-here-zz
Copy link
Contributor

@anubhav-here-zz anubhav-here-zz commented Jun 9, 2020

},
},
// DefaultNodeSelector is the NodeAffinity to be used when labelSelector is nil
DefaultNodeSelector = &corev1.NodeAffinity{
Copy link
Contributor

Choose a reason for hiding this comment

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

If it is DefaultNodeAffinity, why name it DefaultNodeSelector?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! Will fix that

@anubhav-here-zz anubhav-here-zz force-pushed the fix-labelselector branch 2 times, most recently from 6c0d3ed to 27211e6 Compare June 10, 2020 08:34
Copy link
Member

@jarrpa jarrpa left a comment

Choose a reason for hiding this comment

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

Overall looks good. For the TestGetPlacement() test, add another case #5 to test that an empty but non-nil LabelSelector sets no NodeAffinity in the resulting Placement.

Signed-off-by: Anubhav Deep <adeep@redhat.com>
Signed-off-by: Anubhav Deep <adeep@redhat.com>
Signed-off-by: Anubhav Deep <adeep@redhat.com>
Copy link
Member

@jarrpa jarrpa left a comment

Choose a reason for hiding this comment

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

Looks good!

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anubhav-here, jarrpa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 10, 2020
@openshift-merge-robot openshift-merge-robot merged commit e435d32 into red-hat-storage:master Jun 10, 2020
@anubhav-here-zz anubhav-here-zz deleted the fix-labelselector branch June 10, 2020 17:15
@raghavendra-talur
Copy link
Contributor

/cherrypick release-4.5

@openshift-cherrypick-robot

@raghavendra-talur: new pull request created: #575

In response to this:

/cherrypick release-4.5

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

noobaa-db-0 pod not coming up with custom labels.
7 participants