Skip to content

Commit

Permalink
ztp: reference: Change "pod-security.kubernetes.io/" to be prefix based
Browse files Browse the repository at this point in the history
  • Loading branch information
natifridman committed Sep 29, 2024
1 parent 6c8effb commit c176934
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ztp/kube-compare-reference/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ parts:

templateFunctionFiles:
- validate_node_selector.tmpl
- optional_labels.tmpl
- unordered_list.tmpl

fieldsToOmit:
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit c176934

Please sign in to comment.