linkerd2/jaeger/cmd
Firas Medini aaab29c5f7
Set proxy-injector, tap-injector and jaeger-injector mutating webhook rules scope to Namespaced (#12195)
* Set mutating webhook rules scope to Namespaced

Problem: The linkerd-proxy-injector-webhook-config, linkerd-jaeger-injector-webhook-config, and linkerd-tap-injector-webhook-config mutating webhooks raise a warning on GKE that says "Update webhook to no longer intercept system requests." in the GCP console recommendation section. This is because the scope is set to *. This also happens if scope is Namespaced, and kube-system and kube-node-lease namespaces are not excluded using namespaceSelector.

Solution: Setting the scope to Namespaced for all webhooks, and the user can set the namespaceSelector in the helm values.

Validation: This should not change the webhooks behaviour as all webhooks are triggered only by pod/service creation requests, and pods/services are namespaced resources.

Fixes #12193


---------

Signed-off-by: f.medini <f.medini@nyris.io>
Co-authored-by: Alejandro Pedraza <alejandro@buoyant.io>
2024-03-28 09:29:31 -05:00
..
testdata Set proxy-injector, tap-injector and jaeger-injector mutating webhook rules scope to Namespaced (#12195) 2024-03-28 09:29:31 -05:00
check.go Fix `linkerd check --output` flag description (#11145) 2023-07-24 11:24:34 -07:00
dashboard.go Run extension checks when linkerd check is invoked (#5647) 2021-02-11 10:50:16 -06:00
install.go cli: inconsistent precedence for registry flag (#11144) 2023-07-28 13:37:02 -05:00
install_test.go test: Diff structured YAML when possible (#8432) 2022-05-10 08:40:29 -07:00
list.go Removed dupe imports (#10049) 2023-01-10 14:34:56 -05:00
main_test.go jaeger: add install unit tests (#6166) 2021-05-24 13:21:22 -07:00
prune.go Add prune command to linkerd and to extensions (#10303) 2023-02-17 10:44:30 -08:00
root.go Add prune command to linkerd and to extensions (#10303) 2023-02-17 10:44:30 -08:00
uninstall.go Add support for legacy names in extension uninstall (#6226) 2021-06-08 20:18:52 +05:30