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 a disruptive taint to list of default tolerations #878

Merged
merged 1 commit into from
Sep 14, 2019
Merged

Add a disruptive taint to list of default tolerations #878

merged 1 commit into from
Sep 14, 2019

Conversation

johnSchnake
Copy link
Contributor

What this PR does / why we need it:
A new conformance test in v1.16 will add a taint to a node which
can impact the sonobuoy aggregator pod as well as the e2e pod.

This change adds the toleration to both the default job podspec
and the aggregator. The default daemonset podspec already tolerates
all taints.

Which issue(s) this PR fixes
Fixes #876

Special notes for your reviewer:
I created a v1.16 cluster which may not be strictly necessary. You may just need to target the newer tests:

sonobuoy run --e2e-focus "removing taint cancels eviction" --kube-conformance-image-version=v1.16.0-rc.2 --sonobuoy-image schnake/sonobuoy:testTaint

Release note:

Added a new toleration to jobs plugins and the Sonobuoy aggregator in order to avoid disruptive effects of some E2E tests.

@zubron
Copy link
Contributor

zubron commented Sep 13, 2019

CI is failing due to a unit test which is checking the tolerations: https://github.com/heptio/sonobuoy/blob/master/pkg/plugin/driver/job/job_test.go#L209-L214

I added that check, and it's not very good :( sorry

@johnSchnake
Copy link
Contributor Author

Thanks @zubron Fixed that test, I hadn't noticed it. Will wait until ci goes green and merge.

A new conformance test in v1.16 will add a taint to a node which
can impact the sonobuoy aggregator pod as well as the e2e pod.

This change adds the toleration to both the default job podspec
and the aggregator. The default daemonset podspec already tolerates
all taints.

Fixes #876

Signed-off-by: John Schnake <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #878 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #878      +/-   ##
==========================================
- Coverage   46.96%   46.93%   -0.03%     
==========================================
  Files          75       75              
  Lines        4904     4907       +3     
==========================================
  Hits         2303     2303              
- Misses       2469     2472       +3     
  Partials      132      132
Impacted Files Coverage Δ
pkg/plugin/driver/base.go 58.49% <0%> (-1.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f9e963...2d10392. Read the comment docs.

@johnSchnake johnSchnake merged commit f7e2366 into vmware-tanzu:master Sep 14, 2019
@johnSchnake johnSchnake deleted the testTaint branch September 14, 2019 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sonobuoy must tolerate certain test taints
4 participants