Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

[DCOS-60865] Test pod affinity and tolerations support #63

Merged
merged 2 commits into from
Nov 21, 2019

Conversation

alembiewski
Copy link
Contributor

What changes were proposed in this pull request?

Resolves DCOS-60865: Test pod affinity and tolerations support
This PR introduces tests for pod affinity rules and tolerations.
Note: tests use new utility methods, that were introduced in #61, this PR will be updated after the aforementioned is merged.

Why are the changes needed?

To verify that affinity and toleration rules, defined in SparkApplication properly propagated to a pod's specification.

How were the changes tested?

Tested by running the tests locally on minikube cluster as well as running tests from this repo in CI

Copy link
Contributor

@akirillov akirillov left a comment

Choose a reason for hiding this comment

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

Thanks, @alembiewski. LGTM but please check my comment.

testTolerationWithKeyPresent(t, pod, testLabelName)
}

func testAffinityRules(t *testing.T, pod v12.Pod, label string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest aligning the function name with testTolerationWithKeyPresent because testAffinityRules sounds pretty generic while it verifies the presence of a specific label in the rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, makes sense, changed

@alembiewski alembiewski force-pushed the test-affinity-and-tolerations branch from cec42d7 to d8e8260 Compare November 19, 2019 13:55
@alembiewski alembiewski merged commit d7c86fa into master Nov 21, 2019
@alembiewski alembiewski deleted the test-affinity-and-tolerations branch November 21, 2019 07:16
porridge added a commit that referenced this pull request May 28, 2020
This includes the following commits:

Submodule shared f5116d5..361ff73:
  > Introduce a way of disabling $IMAGE_DISAMBIGUATION_SUFFIX. (#64)
  > Fix retry counter. (#62)
  > Bump to a recent konvoy version with better diagnostics. (#63)
porridge added a commit that referenced this pull request Jun 1, 2020
This includes the following commits:

Submodule shared f5116d5..361ff73:
  > Introduce a way of disabling $IMAGE_DISAMBIGUATION_SUFFIX. (#64)
  > Fix retry counter. (#62)
  > Bump to a recent konvoy version with better diagnostics. (#63)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants