istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/config/analysis/analyzers/testdata/injection-image-distroless.yaml (about)

     1  # Namespace 'enabled-namespace' has istio injection enabled, so will be enforced.
     2  apiVersion: v1
     3  kind: Namespace
     4  metadata:
     5    labels:
     6      istio-injection: enabled
     7    name: enabled-namespace
     8  ---
     9  # Namespace 'enabled-namespace-2' has istio injection enabled, so will be enforced.
    10  apiVersion: v1
    11  kind: Namespace
    12  metadata:
    13    labels:
    14      istio-injection: enabled
    15    name: enabled-namespace-2
    16  ---
    17  # Details-v1-pod-old is out of date and should get a warning.
    18  apiVersion: v1
    19  kind: Pod
    20  metadata:
    21    labels:
    22      app: details
    23    name: details-v1-pod-old
    24    namespace: enabled-namespace
    25  spec:
    26    containers:
    27    - image: docker.io/istio/examples-bookinfo-details-v1:1.15.0
    28      name: details
    29    - image: docker.io/istio/proxyv2:1.3.0
    30      name: istio-proxy
    31  ---
    32  # details-v1-pod-new is up-to-date and should not get a warning.
    33  apiVersion: v1
    34  kind: Pod
    35  metadata:
    36    labels:
    37      app: details
    38    name: details-v1-pod-new
    39    namespace: enabled-namespace-2
    40  spec:
    41    containers:
    42    - image: docker.io/istio/examples-bookinfo-details-v1:1.15.0
    43      name: details
    44    - image: docker.io/istio/proxyv2:1.3.1
    45      name: istio-proxy
    46  ---
    47  # details-v1-pod-new-distroless is up-to-date and should not get a warning.
    48  apiVersion: v1
    49  kind: Pod
    50  metadata:
    51    labels:
    52      app: details
    53    name: details-v1-pod-new-distroless
    54    namespace: enabled-namespace-2
    55  spec:
    56    containers:
    57    - image: docker.io/istio/examples-bookinfo-details-v1:1.15.0
    58      name: details
    59    - image: docker.io/istio/proxyv2:1.3.1-distroless
    60      name: istio-proxy