From a00160bd45b5e6b6c096753490e5c28ecf8dd6fb Mon Sep 17 00:00:00 2001 From: ykadowak Date: Thu, 30 Nov 2023 02:36:28 +0000 Subject: [PATCH] Revert "Fix invalid networkPolicy schema (#2230)" This reverts commit 2d71cce5fd8e3e6237795b5a7d727d19979714a2. --- charts/vald-helm-operator/crds/valdrelease.yaml | 12 ++++-------- charts/vald/values.schema.json | 10 ++++------ charts/vald/values.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/charts/vald-helm-operator/crds/valdrelease.yaml b/charts/vald-helm-operator/crds/valdrelease.yaml index 6a62e051bf..3854881577 100644 --- a/charts/vald-helm-operator/crds/valdrelease.yaml +++ b/charts/vald-helm-operator/crds/valdrelease.yaml @@ -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: diff --git a/charts/vald/values.schema.json b/charts/vald/values.schema.json index c6b2c9d5f0..6634a1f68e 100644 --- a/charts/vald/values.schema.json +++ b/charts/vald/values.schema.json @@ -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" } } }, diff --git a/charts/vald/values.yaml b/charts/vald/values.yaml index f83a0a96e8..6d302054fc 100644 --- a/charts/vald/values.yaml +++ b/charts/vald/values.yaml @@ -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"}