Closed drmorr0 closed 4 months ago
Attention: Patch coverage is 7.69231%
with 12 lines
in your changes are missing coverage. Please review.
Project coverage is 74.50%. Comparing base (
8a9ee5e
) to head (ad2f949
).
Files | Patch % | Lines |
---|---|---|
src/k8s/pod_ext.rs | 0.00% | 12 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
It is possible to create a container with two different ports referencing the same port number, but you can't apply a patch to that pod later, even if you're not changing the port definitions. So in the short term we're just stripping port definitions from the podspec during the simulation.
One could make the argument that we should just strip them from the trace entirely but my working hypothesis is that it's better to leave them in the trace data and let the consumers of the trace figure out what to do with it? But that requires us to make changes in two different places whenever we touch the pod spec in the simulation -- this impacts the hash we compute for the pod object, so we end up having to make changes in two places at once.
I'd like to maybe have a test for this, but it's not immediately obvious how I'd write such a test so I'm ignoring it for now.
Testing done