linkerd2/cli
Zahari Dichev a2363f4051
Fix `splitStringListToPorts` port range object rendering (#4688)
The splitStringListToPorts helm function is currently incorrectly formating a list of ports as an array of Port objects that look ike {"port" : 555}. The config map protobuf representation however expects that the ignoreOutboundPorts and ignoreInboundPorts fields are are list of PortRange objects ({"portRange" : 555}).

This was causing the injector to return an empty string when trying to parse a PortRange object resulting in the ports not getting set correctly when injecting workloads. Note that this is happening only with helm installations as this is when we are actually using a helm template for outputting the config map.

To fix that the splitStringListToPorts helm function is changed to format the objects as the json representation of PortRange and is renamed to splitStringListToPortRanges

Fix: #4679

Signed-off-by: Zahari Dichev zaharidichev@gmail.com
2020-07-09 14:23:12 +03:00
..
cmd Fix `splitStringListToPorts` port range object rendering (#4688) 2020-07-09 14:23:12 +03:00
installsp Fixed prom route in linkerd service profile, and some extra cleanup (#4493) 2020-06-03 12:53:50 -05:00
table Add linkerd alpha stat command (#4130) 2020-03-05 15:23:14 -08:00
Dockerfile-bin Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
main.go Refactor proxy injection to use Helm charts (#3200) 2019-08-07 17:32:37 -05:00