pulumi / pulumi-kubernetes-operator

A Kubernetes Operator that automates the deployment of Pulumi Stacks
Apache License 2.0
221 stars 55 forks source link

Serialize specs to be ordered to prevent flakeyness #448

Closed rquitales closed 1 year ago

rquitales commented 1 year ago

Some specs need to be run in a certain order, or they would fail. This is a quick fix to ensure we do not have flakey tests, but comes at a performance hit. We should look into decoupling these specs if possible.

We also create resources (eg. ConfigMaps) with the same name and namespace. This will cause race conditions and dead locks. This PR renames some resources to prevent this, but we should have proper namespace isolation for these tests to run in parallel.

This is a quick fix for now to unblock the v1.12.0 release.

rquitales commented 1 year ago

Superseded in a later PR. Note that this might be of use in the future as the later commits introduces spinning up kind clusters for testing.