Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 30, 2023
1 parent 995ed29 commit 97d47f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/cloudnative-pg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
]
},
"crd_name": "clusters.postgresql.cnpg.io",
"k8s_fields": "data.cloudnative-pg.k8s_mapping",
"seed_custom_resource": "data/cloudnative-pg/cr.yaml",
"kubernetes_version": "v1.26.3",
"wait_time": 60,
Expand Down
10 changes: 10 additions & 0 deletions data/cloudnative-pg/k8s_mapping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from acto.input.known_schemas import K8sField
from acto.input.known_schemas.pod_schemas import AffinitySchema, TopologySpreadConstraintsSchema
from acto.input.known_schemas.storage_schemas import PersistentVolumeClaimSpecSchema

BLACKBOX = [
K8sField(['spec', 'affinity'], AffinitySchema),
K8sField(['spec', 'storage', 'pvcTemplate'], PersistentVolumeClaimSpecSchema),
K8sField(['spec', 'walStorage', 'pvcTemplate'], PersistentVolumeClaimSpecSchema),
K8sField(['spec', 'topologySpreadConstraints'], TopologySpreadConstraintsSchema),
]

0 comments on commit 97d47f3

Please sign in to comment.