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

add pod affinity/anti-affinity tests that are skip()'d #1484

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

tzneal
Copy link
Contributor

@tzneal tzneal commented Mar 8, 2022

1. Issue, if available:
N/A

2. Description of changes:

This sets up some groundwork for beginning work on pod affinity/anti-affinity.

3. How was this change tested?

Unit tests

4. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@netlify
Copy link

netlify bot commented Mar 8, 2022

✔️ Deploy Preview for karpenter-docs-prod canceled.

🔨 Explore the source changes: 59a87c1

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/6227b7f2a391460008f4f9fd

ExpectScheduled(ctx, env.Client, pod)
})
It("should respect pod affinity", func() {
Skip("enable after pod-affinity is finished")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put the skip directive at the context level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, there was a feature request for that feature with ginkgo but it wasn't implemented.

@tzneal tzneal force-pushed the add-skipped-affinity-tests branch from aabc7d4 to 0ddc478 Compare March 8, 2022 19:24
@@ -207,6 +207,48 @@ var _ = Describe("Allocation", func() {
}
Expect(nodeNames.Len()).To(Equal(2))
})
It("should not schedule a non-GPU workload on a node w/GPU", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way we can make this a vendor neutral test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Once GPU support itself is vendor neutral, I think this will come along with that.

var _ = Describe("Incompatible pod networking", func() {
Context("container HostPort usage", func() {
It("shouldn't co-locate pods that use the same HostPort and protocol", func() {
Skip("enable after scheduler is aware of hostport usage")
Copy link
Contributor

Choose a reason for hiding this comment

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

similar re the higher level skip.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not supported in ginkgo

This sets up some groundwork for beginning work on pod
affinity/anti-affinity.
@tzneal tzneal force-pushed the add-skipped-affinity-tests branch from 0ddc478 to 59a87c1 Compare March 8, 2022 20:09
@tzneal tzneal merged commit 1e75c7c into aws:main Mar 10, 2022
@tzneal tzneal deleted the add-skipped-affinity-tests branch March 10, 2022 13:30
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