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
hardens TestAggregatedAPIServer #110194
hardens TestAggregatedAPIServer #110194
Conversation
@p0lyn0mial: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
// Now we want to verify that the client CA bundles properly reflect the values for the cluster-authentication | ||
firstKubeCANames, err := cert.GetClientCANamesForURL(kubeClientConfig.Host) | ||
var firstKubeCANames []string | ||
err = wait.Poll(200*time.Millisecond, 10*time.Second, func() (done bool, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with wait.ForeverTestTimeout
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like short intervals on active loops, they add a lot of load for little benefit, can we use a time.Second
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends how fast it generally happens. If it generally takes 100ms, let's make it short so that we don't artifically make tests longer.
If it takes say 1-2s, then those short intervals didn't make sense.
[And yes - please change to ForeverTestTimeout.
/approve |
Since ClientCAs are provided by "client-ca::kube-system::extension-apiserver-authentication::client-ca-file" controller we need to wait until it picks up the configmap (via a lister) before checking the CAs otherwise the response might contain an empty result.
2a053b4
to
c4e337c
Compare
updated, thanks for reviewing! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, p0lyn0mial, wojtek-t 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Since ClientCAs are provided by
client-ca::kube-system::extension-apiserver-authentication::client-ca-file
controllerwe need to wait until it picks up the configmap (via a lister) before checking the CAs otherwise the response might contain an empty result.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: