weave-gitops
weave-gitops copied to clipboard
Remove repeat errors
Describe the bug
From my slack conversation with @luizbafilho, there is an issue with how k8s reports certain errors. it errors out on two versions of the same crd, ideally they would report something like trafficsplits.split.smi-spec.io/v1beta1 and trafficsplits.split.smi-spec.io/v1beta2 but they ignore the crd version.
In order to avoid this case (and similar ones) we should string-match the error output and only display one if they are identical.
Environment
https://gitops.euw1.wego-gke.weave.works/applications