CNTRLPLANE-3038: test/e2e: migrate validatingwebhook-ca-bundle-injection to OTE serial suite#336
Conversation
… suite Add testValidatingWebhookCABundleInjection(testing.TB) and pollForValidatingWebhookConfigurationTB to e2e.go so the test runs under both the standard `go test` runner and the OTE Ginkgo suite via [Operator][Serial]. In e2e_test.go, replace the inline test body with a call to the shared function and remove the now-dead pollForValidatingWebhookConfiguration and checkWebhookCABundle helpers. With both webhook tests migrated, the shared webhookClientConfig/sideEffectNone variables and the admissionreg/admissionregclient imports are also removed. Both update calls (corrupt + add-webhook) are wrapped in retry.RetryOnConflict with a fresh Get inside the closure to avoid 409 conflicts from concurrent reconciliation. Relates to CNTRLPLANE-3000
|
@wangke19: This pull request references CNTRLPLANE-3038 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.22.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughChanges refactor validating webhook CA bundle injection testing by extracting inline test logic from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
|
@wangke19: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/verified by CI |
|
/lgtm |
|
@wangke19: This PR has been marked as verified by DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gangwgr, wangke19 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Migrates the
validatingwebhook-ca-bundle-injectiontest case to the OTE dual-mode framework — the final case in the CA bundle injection series (#332, #334, #335).testValidatingWebhookCABundleInjection(testing.TB)andpollForValidatingWebhookConfigurationTBtoe2e.gowith[Operator][Serial]Ginkgo markere2e_test.gowith a delegating call + NOTE commentpollForValidatingWebhookConfigurationandcheckWebhookCABundlehelpers frome2e_test.gowebhookClientConfig/sideEffectNonevariables andadmissionreg/admissionregclientimports are also removed frome2e_test.goretry.RetryOnConflictwith a freshGetto avoid 409 conflicts from concurrent reconciliationNo
[Disruptive]label needed — no CA rotation is triggered.Relates to CNTRLPLANE-3000