NamespaceMultipleInjectionLabels
| Message Name | NamespaceMultipleInjectionLabels |
| Message Code | IST0123 |
| Description | A namespace has both new and legacy injection labels |
| Level | Warning |
This message occurs when a namespace specifies Istio sidecar auto-injection using both the new and legacy style labels.
Example
You will receive this message:
Warning [IST0123] (Namespace busted) The namespace has both new and legacy injection labels. Run 'kubectl label namespace busted istio.io/rev-' or 'kubectl label namespace busted istio-injection-'
when your cluster has following namespace:
apiVersion: v1kind: Namespacemetadata:name: bustedlabels:istio-injection: enabledistio.io/rev: canary
In this example, the namespace busted uses both old-style and new-style injection labels.
How to resolve
- Remove the
istio-injectionlabel - Remove the
istio.io/revlabel