From c17693426ea3fdfa446182882b4184f2b683041a Mon Sep 17 00:00:00 2001 From: Nati Fridman Date: Wed, 25 Sep 2024 15:31:54 +0300 Subject: [PATCH] ztp: reference: Change "pod-security.kubernetes.io/" to be prefix based --- ztp/kube-compare-reference/metadata.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ztp/kube-compare-reference/metadata.yaml b/ztp/kube-compare-reference/metadata.yaml index 60336af99..65f847b7d 100644 --- a/ztp/kube-compare-reference/metadata.yaml +++ b/ztp/kube-compare-reference/metadata.yaml @@ -167,7 +167,6 @@ parts: templateFunctionFiles: - validate_node_selector.tmpl - - optional_labels.tmpl - unordered_list.tmpl fieldsToOmit: @@ -184,13 +183,11 @@ fieldsToOmit: - pathToKey: metadata.annotations."machineconfiguration.openshift.io/mc-name-suffix" - pathToKey: metadata.labels."kubernetes.io/metadata.name" - pathToKey: metadata.labels."olm.operatorgroup.uid" - - pathToKey: metadata.labels."pod-security.kubernetes.io" - pathToKey: metadata.labels."security.openshift.io/scc.podSecurityLabelSync" - pathToKey: metadata.resourceVersion - pathToKey: metadata.uid - pathToKey: spec.finalizers - pathToKey: metadata.creationTimestamp - - pathToKey: metadata."pod-security.kubernetes.io" - pathToKey: metadata.generation - pathToKey: status # TODO: We need to check status in Subscription and CatalogSource. CNF-13521 - pathToKey: metadata.finalizers @@ -202,10 +199,8 @@ fieldsToOmit: - pathToKey: metadata.annotations."include.release.openshift.io/single-node-developer" - pathToKey: metadata.annotations."release.openshift.io/create-only" - pathToKey: metadata.labels."lca.openshift.io/target-ocp-version" - - pathToKey: metadata.labels."pod-security.kubernetes.io/audit" - - pathToKey: metadata.labels."pod-security.kubernetes.io/audit-version" - - pathToKey: metadata.labels."pod-security.kubernetes.io/warn" - - pathToKey: metadata.labels."pod-security.kubernetes.io/warn-version" + - pathToKey: metadata.labels."pod-security.kubernetes.io/" + isPrefix: true - pathToKey: metadata.annotations."capability.openshift.io/name" - pathToKey: metadata.annotations."olm.providedAPIs" - pathToKey: metadata.annotations."operator.sriovnetwork.openshift.io/last-network-namespace"