Fix wrong default policy being stated (#4840)

When policy is set to an unrecognized value, the sidecar injector
defaults to [not injecting the pod, regardless of any other factors](https://github.com/istio/istio/blob/master/pkg/kube/inject/inject.go#L478)

This is different to the behvaior of `policy: disabled`, so the docs
should make that clear.

Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de>
This commit is contained in:
Maximilian Bischoff 2019-08-27 22:52:52 +02:00 committed by Istio Automation
parent 4a43a3d2cc
commit 075dc078ba
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ of injected sidecar when it was.
Allowed policy values are `disabled` and `enabled`. The default policy
only applies if the webhooks `namespaceSelector` matches the target
namespace. Unrecognized policy values default to `disabled`.
namespace. Unrecognized policy causes injection to be disabled completely.
1. Check the per-pod override annotation