Commit 63b248b
Sync envtest optimization across all operators
With recent changes to the CI env we hit issues running envtest
hitting timeouts in test since 25s was not enough, but also
during kube-api startup and register custom CRDs before checks
start and teardown of the kube-api. Therefore adding
ControlPlaneStartTimeout and ControlPlaneStopTimeout bumping the
default 60s to 120s.
Also hitting slow env and with our tests, we have seen that
the default cluster ip range /24 is to small, increasing to /12
Also disable not required admission plugins for envtest:
ResourceQuota: This stops the "quota evaluation timed out" error.
The API server will no longer try to calculate how many resources
exist before letting you create new ones.
ServiceAccount: This prevents the API server from looking for a
ServiceAccount issuer or secret for every pod/resource. Since
envtest doesn't run the ServiceAccount controller, this plugin
often just causes unnecessary errors or delays.
NamespaceLifecycle: (Optional but recommended) This allows you to
create resources in a namespace even if the namespace is in a
"Terminating" state. This is very helpful when your cleanup is
slow due to CPU throttling.
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f46ba0f commit 63b248b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
0 commit comments