Skip to content

Commit

Permalink
Revert "Fix invalid networkPolicy schema (#2230)"
Browse files Browse the repository at this point in the history
This reverts commit 2d71cce.
  • Loading branch information
ykadowak committed Nov 30, 2023
1 parent 5bd1598 commit b9b58a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
12 changes: 4 additions & 8 deletions charts/vald-helm-operator/crds/valdrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2032,15 +2032,11 @@ spec:
type: object
properties:
egress:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
x-kubernetes-preserve-unknown-fields: true
ingress:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
x-kubernetes-preserve-unknown-fields: true
enabled:
type: boolean
observability:
Expand Down
10 changes: 4 additions & 6 deletions charts/vald/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3288,14 +3288,12 @@
"description": "custom network policies that a user can add",
"properties": {
"egress": {
"type": "array",
"description": "custom egress network policies that a user can add",
"items": { "type": "object" }
"type": "object",
"description": "custom egress network policies that a user can add"
},
"ingress": {
"type": "array",
"description": "custom ingress network policies that a user can add",
"items": { "type": "object" }
"type": "object",
"description": "custom ingress network policies that a user can add"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions charts/vald/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -838,12 +838,12 @@ defaults:
# @schema {"name": "defaults.networkPolicy.custom", "type": "object"}
# defaults.networkPolicy.custom -- custom network policies that a user can add
custom:
# @schema {"name": "defaults.networkPolicy.custom.ingress", "type": "array", "items": {"type": "object"}}
# @schema {"name": "defaults.networkPolicy.custom.ingress", "type": "object"}
# defaults.networkPolicy.custom.ingress -- custom ingress network policies that a user can add
ingress: []
# @schema {"name": "defaults.networkPolicy.custom.egress", "type": "array", "items": {"type": "object"}}
ingress: {}
# @schema {"name": "defaults.networkPolicy.custom.egress", "type": "object"}
# defaults.networkPolicy.custom.egress -- custom egress network policies that a user can add
egress: []
egress: {}
# @schema {"name": "gateway", "type": "object"}
gateway:
# @schema {"name": "gateway.lb", "type": "object"}
Expand Down

0 comments on commit b9b58a5

Please sign in to comment.