NamespaceMultipleInjectionLabels

Message NameNamespaceMultipleInjectionLabels
Message CodeIST0123
DescriptionA namespace has both new and legacy injection labels
LevelWarning

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:

  1. 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:

  1. apiVersion: v1
  2. kind: Namespace
  3. metadata:
  4. name: busted
  5. labels:
  6. istio-injection: enabled
  7. istio.io/rev: canary

In this example, the namespace busted uses both old-style and new-style injection labels.

How to resolve

  • Remove the istio-injection label
  • Remove the istio.io/rev label