-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 controllers: fix ProviderServiceAccount tests to create objects on-demand #2983
🌱 controllers: fix ProviderServiceAccount tests to create objects on-demand #2983
Conversation
/cherry-pick release-1.10 |
@chrischdi: once the present PR merges, I will cherry-pick it on top of release-1.10 in a new PR and assign it to you. In response to this:
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-sigs/prow repository. |
/cherry-pick release-1.9 |
@chrischdi: once the present PR merges, I will cherry-pick it on top of release-1.9 in a new PR and assign it to you. In response to this:
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-sigs/prow repository. |
/cherry-pick release-1.8 |
@chrischdi: once the present PR merges, I will cherry-pick it on top of release-1.8 in a new PR and assign it to you. In response to this:
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-sigs/prow repository. |
/cherry-pick release-1.7 |
@chrischdi: once the present PR merges, I will cherry-pick it on top of release-1.7 in a new PR and assign it to you. In response to this:
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-sigs/prow repository. |
0f3de60
to
b0fbc69
Compare
/hold cancel Works great also for release-1.7 (did a local manual cherry-pick). Note: cherry-picker is expected to fail at least for 1.7, let's see which ones we have to manually cherry-pick /assign @fabriziopandini @sbueringer |
Can you please also rename the misleading funcs? (xref: #2983 (comment)) createCluster, etc. |
9b235ad
to
02acd8f
Compare
Thx! Very nice investigation! :) /lgtm |
LGTM label has been added. Git tree hash: 2aff8a7284383da35f5aad0bbd078f9f718bf2b3
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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 |
@chrischdi: new pull request created: #2997 In response to this:
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-sigs/prow repository. |
@chrischdi: #2983 failed to apply on top of branch "release-1.8":
In response to this:
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-sigs/prow repository. |
@chrischdi: #2983 failed to apply on top of branch "release-1.7":
In response to this:
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-sigs/prow repository. |
@chrischdi: new pull request created: #2998 In response to this:
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-sigs/prow repository. |
…demand (kubernetes-sigs#2983) * controllers: fix ProviderServiceAccount tests to create objects on-demand * review fixes
…demand (kubernetes-sigs#2983) * controllers: fix ProviderServiceAccount tests to create objects on-demand * review fixes
What this PR does / why we need it:
This PR changes the controllers tests for serviceaccount_controller and servicediscovery_controller to only create the objects which are required, instead of creating all and deleting the ones not required.
This solves a race condition for the serviceaccount_controller related test cases for the following cases:
In case of this tests, the serviceaccount_controller could already have reconciled once successfully and added a successful
ProviderServiceAccountsReadyCondition
before the tests have deleted the relevant objects.This gets reproducible by adding a
time.Sleep(time.Second)
before the deletion, e.g. at:This solves the flake we heavily see on release-1.7:
E.g.:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
/hold
I want to do final verification locally