From 76e721d0d8c8ff842fe385e0859b465f5ccb3b83 Mon Sep 17 00:00:00 2001 From: Gareth Healy Date: Mon, 27 Jul 2020 20:01:33 +0100 Subject: [PATCH] Added version to expected labels (#93) --- _test/all-namespaces/ocp/bestpractices/all.yml | 10 ++++++++++ .../common-k8s-labels-notset/src.rego | 2 +- .../test_data/integration/list.yml | 3 +++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 15 +++++++++++++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 10 ++++++++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 5 +++++ .../test_data/integration/list.yml | 7 +++++++ .../test_data/integration/list.yml | 3 +++ .../test_data/integration/list.yml | 4 ++++ .../test_data/integration/list.yml | 3 +++ .../test_data/integration/list.yml | 2 ++ 27 files changed, 143 insertions(+), 1 deletion(-) diff --git a/_test/all-namespaces/ocp/bestpractices/all.yml b/_test/all-namespaces/ocp/bestpractices/all.yml index da375aae..9f52c528 100644 --- a/_test/all-namespaces/ocp/bestpractices/all.yml +++ b/_test/all-namespaces/ocp/bestpractices/all.yml @@ -20,6 +20,7 @@ objects: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -29,6 +30,7 @@ objects: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -40,6 +42,7 @@ objects: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -51,6 +54,7 @@ objects: selector: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -64,6 +68,7 @@ objects: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -73,6 +78,7 @@ objects: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -83,6 +89,7 @@ objects: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -91,6 +98,7 @@ objects: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -145,6 +153,7 @@ objects: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -156,6 +165,7 @@ objects: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/common-k8s-labels-notset/src.rego b/policy/ocp/bestpractices/common-k8s-labels-notset/src.rego index 8381674e..16e16a05 100644 --- a/policy/ocp/bestpractices/common-k8s-labels-notset/src.rego +++ b/policy/ocp/bestpractices/common-k8s-labels-notset/src.rego @@ -17,7 +17,7 @@ violation[msg] { is_common_labels_set(metadata) { metadata.labels["app.kubernetes.io/name"] metadata.labels["app.kubernetes.io/instance"] - #metadata.labels["app.kubernetes.io/version"] + metadata.labels["app.kubernetes.io/version"] metadata.labels["app.kubernetes.io/component"] metadata.labels["app.kubernetes.io/part-of"] metadata.labels["app.kubernetes.io/managed-by"] diff --git a/policy/ocp/bestpractices/common-k8s-labels-notset/test_data/integration/list.yml b/policy/ocp/bestpractices/common-k8s-labels-notset/test_data/integration/list.yml index 86c86418..bdeaebd2 100644 --- a/policy/ocp/bestpractices/common-k8s-labels-notset/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/common-k8s-labels-notset/test_data/integration/list.yml @@ -12,6 +12,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -20,6 +21,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-env-maxmemory-notset/test_data/integration/list.yml b/policy/ocp/bestpractices/container-env-maxmemory-notset/test_data/integration/list.yml index 34032ce5..256d5455 100644 --- a/policy/ocp/bestpractices/container-env-maxmemory-notset/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-env-maxmemory-notset/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -66,6 +69,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -77,6 +81,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-image-latest/test_data/integration/list.yml b/policy/ocp/bestpractices/container-image-latest/test_data/integration/list.yml index bbd58492..7a12d184 100644 --- a/policy/ocp/bestpractices/container-image-latest/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-image-latest/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-java-xmx-set/test_data/integration/list.yml b/policy/ocp/bestpractices/container-java-xmx-set/test_data/integration/list.yml index 458ef4b6..a992bddf 100644 --- a/policy/ocp/bestpractices/container-java-xmx-set/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-java-xmx-set/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +75,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -90,6 +95,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -136,6 +142,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -146,6 +153,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -154,6 +162,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -201,6 +210,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -212,6 +222,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -260,6 +271,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -271,6 +283,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -319,6 +332,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -330,6 +344,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-labelkey-inconsistent/test_data/integration/list.yml b/policy/ocp/bestpractices/container-labelkey-inconsistent/test_data/integration/list.yml index 6df24388..5c6c5ec3 100644 --- a/policy/ocp/bestpractices/container-labelkey-inconsistent/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-labelkey-inconsistent/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -20,6 +21,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -28,6 +30,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -75,6 +78,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -88,6 +92,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-liveness-readinessprobe-equal/test_data/integration/list.yml b/policy/ocp/bestpractices/container-liveness-readinessprobe-equal/test_data/integration/list.yml index 3d9c7589..839c9bc8 100644 --- a/policy/ocp/bestpractices/container-liveness-readinessprobe-equal/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-liveness-readinessprobe-equal/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +75,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -83,6 +87,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-livenessprobe-notset/test_data/integration/list.yml b/policy/ocp/bestpractices/container-livenessprobe-notset/test_data/integration/list.yml index 5dbf455c..605514d4 100644 --- a/policy/ocp/bestpractices/container-livenessprobe-notset/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-livenessprobe-notset/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -61,6 +64,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +76,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-readinessprobe-notset/test_data/integration/list.yml b/policy/ocp/bestpractices/container-readinessprobe-notset/test_data/integration/list.yml index 75372339..647863cb 100644 --- a/policy/ocp/bestpractices/container-readinessprobe-notset/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-readinessprobe-notset/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -61,6 +64,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +76,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-resources-limits-cpu-set/test_data/integration/list.yml b/policy/ocp/bestpractices/container-resources-limits-cpu-set/test_data/integration/list.yml index 4a137c8c..609329e9 100644 --- a/policy/ocp/bestpractices/container-resources-limits-cpu-set/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-resources-limits-cpu-set/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +75,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -83,6 +87,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-resources-limits-memory-greater-than/test_data/integration/list.yml b/policy/ocp/bestpractices/container-resources-limits-memory-greater-than/test_data/integration/list.yml index 58852faf..acf48698 100644 --- a/policy/ocp/bestpractices/container-resources-limits-memory-greater-than/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-resources-limits-memory-greater-than/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-resources-limits-memory-notset/test_data/integration/list.yml b/policy/ocp/bestpractices/container-resources-limits-memory-notset/test_data/integration/list.yml index 99720e83..10a0b60e 100644 --- a/policy/ocp/bestpractices/container-resources-limits-memory-notset/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-resources-limits-memory-notset/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -69,6 +72,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -80,6 +84,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-resources-memoryunit-incorrect/test_data/integration/list.yml b/policy/ocp/bestpractices/container-resources-memoryunit-incorrect/test_data/integration/list.yml index 4a9e9260..9361cd2c 100644 --- a/policy/ocp/bestpractices/container-resources-memoryunit-incorrect/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-resources-memoryunit-incorrect/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -81,6 +85,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -89,6 +94,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -134,6 +140,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -145,6 +152,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -192,6 +200,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -203,6 +212,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-resources-requests-cpuunit-incorrect/test_data/integration/list.yml b/policy/ocp/bestpractices/container-resources-requests-cpuunit-incorrect/test_data/integration/list.yml index 093cf563..dcec1381 100644 --- a/policy/ocp/bestpractices/container-resources-requests-cpuunit-incorrect/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-resources-requests-cpuunit-incorrect/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-resources-requests-memory-greater-than/test_data/integration/list.yml b/policy/ocp/bestpractices/container-resources-requests-memory-greater-than/test_data/integration/list.yml index 538a2885..c784852b 100644 --- a/policy/ocp/bestpractices/container-resources-requests-memory-greater-than/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-resources-requests-memory-greater-than/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-secret-mounted-envs/test_data/integration/list.yml b/policy/ocp/bestpractices/container-secret-mounted-envs/test_data/integration/list.yml index 445aa86b..ecd6d677 100644 --- a/policy/ocp/bestpractices/container-secret-mounted-envs/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-secret-mounted-envs/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -76,6 +79,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -87,6 +91,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-volumemount-inconsistent-path/test_data/integration/list.yml b/policy/ocp/bestpractices/container-volumemount-inconsistent-path/test_data/integration/list.yml index 06cda16b..21757b9d 100644 --- a/policy/ocp/bestpractices/container-volumemount-inconsistent-path/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-volumemount-inconsistent-path/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -78,6 +81,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -89,6 +93,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/container-volumemount-missing/test_data/integration/list.yml b/policy/ocp/bestpractices/container-volumemount-missing/test_data/integration/list.yml index 2f01c688..38a27438 100644 --- a/policy/ocp/bestpractices/container-volumemount-missing/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/container-volumemount-missing/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -126,6 +129,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -137,6 +141,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/pod-hostnetwork/test_data/integration/list.yml b/policy/ocp/bestpractices/pod-hostnetwork/test_data/integration/list.yml index c1db0a77..e2477a85 100644 --- a/policy/ocp/bestpractices/pod-hostnetwork/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/pod-hostnetwork/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -72,6 +75,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -83,6 +87,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/pod-replicas-below-one/test_data/integration/list.yml b/policy/ocp/bestpractices/pod-replicas-below-one/test_data/integration/list.yml index be2afe1f..d2b95bbe 100644 --- a/policy/ocp/bestpractices/pod-replicas-below-one/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/pod-replicas-below-one/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/bestpractices/pod-replicas-not-odd/test_data/integration/list.yml b/policy/ocp/bestpractices/pod-replicas-not-odd/test_data/integration/list.yml index a65978b1..107537ab 100644 --- a/policy/ocp/bestpractices/pod-replicas-not-odd/test_data/integration/list.yml +++ b/policy/ocp/bestpractices/pod-replicas-not-odd/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -71,6 +74,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -82,6 +86,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/requiresinventory/deployment-has-matching-poddisruptionbudget/test_data/integration/list.yml b/policy/ocp/requiresinventory/deployment-has-matching-poddisruptionbudget/test_data/integration/list.yml index b6cf996a..34337cae 100644 --- a/policy/ocp/requiresinventory/deployment-has-matching-poddisruptionbudget/test_data/integration/list.yml +++ b/policy/ocp/requiresinventory/deployment-has-matching-poddisruptionbudget/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb @@ -17,6 +18,7 @@ items: matchLabels: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb @@ -28,6 +30,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb @@ -39,6 +42,7 @@ items: selector: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb @@ -48,6 +52,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb @@ -58,6 +63,7 @@ items: matchLabels: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb @@ -66,6 +72,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingpdb app.kubernetes.io/instance: Bar-hasmissingpdb + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingpdb app.kubernetes.io/part-of: Foo-hasmissingpdb app.kubernetes.io/managed-by: Bar-hasmissingpdb diff --git a/policy/ocp/requiresinventory/deployment-has-matching-pvc/test_data/integration/list.yml b/policy/ocp/requiresinventory/deployment-has-matching-pvc/test_data/integration/list.yml index 20885c59..0c936a40 100644 --- a/policy/ocp/requiresinventory/deployment-has-matching-pvc/test_data/integration/list.yml +++ b/policy/ocp/requiresinventory/deployment-has-matching-pvc/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/requiresinventory/deployment-has-matching-service/test_data/integration/list.yml b/policy/ocp/requiresinventory/deployment-has-matching-service/test_data/integration/list.yml index 1f185599..432cf1da 100644 --- a/policy/ocp/requiresinventory/deployment-has-matching-service/test_data/integration/list.yml +++ b/policy/ocp/requiresinventory/deployment-has-matching-service/test_data/integration/list.yml @@ -12,6 +12,7 @@ items: matchLabels: app.kubernetes.io/name: Foo-hasmissingsvc app.kubernetes.io/instance: Bar-hasmissingsvc + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingsvc app.kubernetes.io/part-of: Foo-hasmissingsvc app.kubernetes.io/managed-by: Bar-hasmissingsvc @@ -21,6 +22,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingsvc app.kubernetes.io/instance: Bar-hasmissingsvc + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingsvc app.kubernetes.io/part-of: Foo-hasmissingsvc app.kubernetes.io/managed-by: Bar-hasmissingsvc @@ -31,6 +33,7 @@ items: matchLabels: app.kubernetes.io/name: Foo-hasmissingsvc app.kubernetes.io/instance: Bar-hasmissingsvc + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingsvc app.kubernetes.io/part-of: Foo-hasmissingsvc app.kubernetes.io/managed-by: Bar-hasmissingsvc @@ -39,6 +42,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingsvc app.kubernetes.io/instance: Bar-hasmissingsvc + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingsvc app.kubernetes.io/part-of: Foo-hasmissingsvc app.kubernetes.io/managed-by: Bar-hasmissingsvc diff --git a/policy/ocp/requiresinventory/deployment-has-matching-serviceaccount/test_data/integration/list.yml b/policy/ocp/requiresinventory/deployment-has-matching-serviceaccount/test_data/integration/list.yml index ae53d123..f7851b0b 100644 --- a/policy/ocp/requiresinventory/deployment-has-matching-serviceaccount/test_data/integration/list.yml +++ b/policy/ocp/requiresinventory/deployment-has-matching-serviceaccount/test_data/integration/list.yml @@ -8,6 +8,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -18,6 +19,7 @@ items: matchLabels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar @@ -26,6 +28,7 @@ items: labels: app.kubernetes.io/name: Foo app.kubernetes.io/instance: Bar + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar app.kubernetes.io/part-of: Foo app.kubernetes.io/managed-by: Bar diff --git a/policy/ocp/requiresinventory/service-has-matching-servicemonitor/test_data/integration/list.yml b/policy/ocp/requiresinventory/service-has-matching-servicemonitor/test_data/integration/list.yml index e827c4b2..81de7695 100644 --- a/policy/ocp/requiresinventory/service-has-matching-servicemonitor/test_data/integration/list.yml +++ b/policy/ocp/requiresinventory/service-has-matching-servicemonitor/test_data/integration/list.yml @@ -9,6 +9,7 @@ items: labels: app.kubernetes.io/name: Foo-hasmissingsvcmon app.kubernetes.io/instance: Bar-hasmissingsvcmon + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingsvcmon app.kubernetes.io/part-of: Foo-hasmissingsvcmon app.kubernetes.io/managed-by: Bar-hasmissingsvcmon @@ -19,6 +20,7 @@ items: selector: app.kubernetes.io/name: Foo-hasmissingsvcmon app.kubernetes.io/instance: Bar-hasmissingsvcmon + app.kubernetes.io/version: v1 app.kubernetes.io/component: FooBar-hasmissingsvcmon app.kubernetes.io/part-of: Foo-hasmissingsvcmon app.kubernetes.io/managed-by: Bar-hasmissingsvcmon