Skip to content

Commit

Permalink
Fix matching Kubernetes core schema with opaque schemas (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu authored Feb 22, 2024
1 parent be659ce commit bd2c516
Show file tree
Hide file tree
Showing 3 changed files with 25,586 additions and 0 deletions.
4 changes: 4 additions & 0 deletions acto/input/k8s_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,8 @@ def expand_top_level_matched_schemas(
to_explore.append(
(crd_schema.additional_properties, k8s_schema.value)
)
elif isinstance(k8s_schema, KubernetesOpaqueSchema):
pass
else:
raise RuntimeError(
"CRD schema type does not match k8s schema type"
Expand All @@ -630,6 +632,8 @@ def expand_top_level_matched_schemas(
to_explore.append(
(crd_schema.get_item_schema(), k8s_schema.item)
)
elif isinstance(k8s_schema, KubernetesOpaqueSchema):
pass
else:
raise RuntimeError(
"CRD schema type does not match k8s schema type"
Expand Down
Loading

0 comments on commit bd2c516

Please sign in to comment.