linkerd2/cli/cmd
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
..
testdata Fix `splitStringListToPorts` port range object rendering (#4688) 2020-07-09 14:23:12 +03:00
alpha.go Added documentation for alpha cli command (#4412) 2020-05-26 13:59:56 -07:00
alpha_clients.go Added documentation for alpha cli command (#4412) 2020-05-26 13:59:56 -07:00
alpha_stat.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
check.go multicluster: checks for misconfigured mirror services (#4552) 2020-06-08 15:29:34 -07:00
check_test.go Output check result as json (#2666) 2019-05-20 09:04:28 -07:00
completion.go GoDocs for completion, dashboard and diagnostics cli commands (#4518) 2020-06-30 05:53:50 -05:00
completion_test.go Bump proxy-init to 1.2.0 (#3397) 2019-09-09 09:06:14 -07:00
dashboard.go GoDocs for completion, dashboard and diagnostics cli commands (#4518) 2020-06-30 05:53:50 -05:00
diagnostics.go GoDocs for completion, dashboard and diagnostics cli commands (#4518) 2020-06-30 05:53:50 -05:00
doc.go feat: add log format annotation and helm value (#4620) 2020-07-02 10:08:52 -05:00
edges.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
edges_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
endpoints.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
endpoints_test.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
get.go Add namespace global flag to hold default namespace name (#4469) (#4512) 2020-06-04 10:45:07 -07:00
get_test.go Fix spelling mistakes using codespell (#4700) 2020-07-07 17:07:22 -05:00
inject.go feat: add log format annotation and helm value (#4620) 2020-07-02 10:08:52 -05:00
inject_test.go feat: add log format annotation and helm value (#4620) 2020-07-02 10:08:52 -05:00
inject_util.go Update `inject` to throw an error while injecting non-compliant pods (#4346) 2020-06-24 14:07:05 -05:00
install-cni-plugin.go Remove experimental from CNI (#4038) 2020-02-11 20:10:55 +02:00
install-cni-plugin_test.go Fix CNI config parsing (#3953) 2020-01-23 09:55:04 -08:00
install-sp.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
install-sp_test.go Add cluster domain cli flag (#3360) 2019-09-19 16:08:50 -07:00
install.go Add `values.yaml` to chart tempaltes (#4682) 2020-07-02 22:59:41 +05:30
install_addon_test.go Add addon-overwrite flag (#4377) 2020-05-21 21:01:41 +05:30
install_cni_helm_test.go Use cniPluginVersion with Helm for linkerd2-cni (#4693) 2020-07-02 20:45:13 +05:30
install_helm_test.go update helm render tests to consider child charts values.yaml (#4725) 2020-07-08 20:28:56 +05:30
install_test.go Added custom tolerations to helm chart (#4626) 2020-07-07 17:37:02 -05:00
logs.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00
logs_test.go Introduce inject integration tests (#2616) 2019-04-05 11:42:49 -07:00
main_test.go add flag for dumping rejected results to folder for use with external diff (#4509) 2020-06-04 10:49:41 -04:00
metrics.go Add namespace global flag to hold default namespace name (#4469) (#4512) 2020-06-04 10:45:07 -07:00
metrics_diagnostics_util.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
metrics_diagnostics_util_test.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
multicluster.go Change help text to use source/target terminology in multicluster CLI (#4523) 2020-06-02 12:33:18 -04:00
profile.go Add namespace global flag to hold default namespace name (#4469) (#4512) 2020-06-04 10:45:07 -07:00
profile_test.go Allow setting custom cluster domain in service profiles (#3148) 2019-08-07 09:49:54 -07:00
public_api.go Add namespace global flag to hold default namespace name (#4469) (#4512) 2020-06-04 10:45:07 -07:00
range_slice.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
range_slice_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
root.go feat: add log format annotation and helm value (#4620) 2020-07-02 10:08:52 -05:00
routes.go Fix routes wide output formatting for empty values (#4239) 2020-04-07 14:35:55 -05:00
routes_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
stat.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
stat_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
tap.go Add namespace global flag to hold default namespace name (#4469) (#4512) 2020-06-04 10:45:07 -07:00
tap_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
top.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
uninject.go Upgrade golangci-lint to v1.23.8 (#4181) 2020-03-18 09:13:19 -05:00
uninject_test.go Remove envoy, contour restrictions (#4092) 2020-03-02 09:18:51 -05:00
uninstall.go `linkerd uninstall` errors when attempting to delete PSP (#4234) 2020-04-07 11:01:11 -05:00
uninstall_test.go Add uninstall cmd functionality to cli (#3622) (#4200) 2020-04-02 12:35:39 -05:00
upgrade.go Remove `--prune` from multi-stage upgrade docs (#4613) 2020-06-17 10:29:34 -04:00
upgrade_test.go Add destination-get-networks option (#4608) 2020-06-18 20:07:47 +03:00
version.go Improve proxy version diagnostics (#4244) 2020-04-16 11:28:19 -07:00
version_test.go Improve proxy version diagnostics (#4244) 2020-04-16 11:28:19 -07:00