padok-team / burrito

🌯 Burrito is a TACoS 🌮
https://padok-team.github.io/burrito
Apache License 2.0
241 stars 10 forks source link

bug: tolerations with same key are overwritten during merge #313

Open LucasMrqes opened 1 month ago

LucasMrqes commented 1 month ago

When specifying two distinct tolerations with a common key in overrideRunnerSpec (e.g kubernetes.io/arch=amd64:noSchedule and kubernetes.io/arch=arm64:noSchedule), only the last toleration is kept by the merge operation during the concatenation of TerraformRepository and TerraformLayer OverrideRunnerSpec.

Easily reproductible by updating the related MergeTolerations test in common_test.go with two tolerations that share the same key