linkerd2/controller
Alejandro Pedraza ae62d92f7d
Fixes unit tests indeterminism (#6496)
We were getting sporadic coverage differences on `controller/k8s/test_helper.go` and `pkg/healthcheck/healthcheck_test.go` on pushes unrelated to those files.

For the former, the problem was in tests in `controller/k8s/api_test.go` that compared slices of pods and services by sorting them. The `Sort` interface was implemented through the methods in `test_helper.go`. There is indeterminism in that sorting at the go library level apparently, in that the `Swap` method is not always called, which impacted the coverage report. The fix consists on comparing those slices item by item without needing to sort beforehand.

As for `healthcheck_test.go`, `validateControlPlanePods()` in `healthcheck.go` short-circuits on the first pod having all its containers ready. The unit tests iterate over maps, an iteration we know is not deterministic, so sometimes the short-circuiting avoided to ever cover the `!container.Ready` block, thus affecting the coverage report. This is fixed by adding a new small test that makes sure that block is covered.
2021-07-19 12:42:45 +05:30
..
api Add endpoint in profile response for requests on pod DNS. (#6260) 2021-06-22 16:51:29 -06:00
cmd Emit event when issuing leaf certificate (#6364) 2021-06-25 11:19:16 -07:00
gen Bump google.golang.org/protobuf from 1.27.0 to 1.27.1 (#6409) 2021-07-01 14:50:04 -06:00
heartbeat Bump helm.sh/helm/v3 from 3.4.1 to 3.6.1 (#6286) 2021-06-18 09:34:29 -06:00
identity Have webhooks refresh their certs automatically (#5282) 2020-12-04 16:25:59 -05:00
k8s Fixes unit tests indeterminism (#6496) 2021-07-19 12:42:45 +05:30
proxy-injector Set `LINKERD2_PROXY_INBOUND_PORTS` during injection (#6445) 2021-07-09 11:52:20 -05:00
script/destination-client Print identity in destination client and fix proxy-identity log line (#4873) 2020-08-13 13:49:55 -07:00
sp-validator Fix sp-validator not setting requestUID (#5866) 2021-03-04 09:57:57 -08:00
webhook viz: add tap-injector (#5540) 2021-01-21 11:24:08 -05:00
Dockerfile Update Go to 1.16.4 (#6170) 2021-05-24 11:57:46 -07:00