From 08331baeeb66162134761b956216617bcc060af5 Mon Sep 17 00:00:00 2001 From: Mengxin Liu Date: Thu, 8 Sep 2022 11:17:44 +0800 Subject: [PATCH] fix: api rollback --- pkg/apis/kubeovn/v1/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/kubeovn/v1/types.go b/pkg/apis/kubeovn/v1/types.go index 9c5f5eefe7b..49e8d0225a8 100644 --- a/pkg/apis/kubeovn/v1/types.go +++ b/pkg/apis/kubeovn/v1/types.go @@ -99,7 +99,7 @@ type Subnet struct { } type SubnetSpec struct { - Default bool `json:"default,omitempty"` + Default bool `json:"default"` Vpc string `json:"vpc,omitempty"` Protocol string `json:"protocol,omitempty"` Namespaces []string `json:"namespaces,omitempty"` @@ -110,13 +110,13 @@ type SubnetSpec struct { GatewayType string `json:"gatewayType,omitempty"` GatewayNode string `json:"gatewayNode,omitempty"` - NatOutgoing bool `json:"natOutgoing,omitempty"` + NatOutgoing bool `json:"natOutgoing"` ExternalEgressGateway string `json:"externalEgressGateway,omitempty"` PolicyRoutingPriority uint32 `json:"policyRoutingPriority,omitempty"` PolicyRoutingTableID uint32 `json:"policyRoutingTableID,omitempty"` - Private bool `json:"private,omitempty"` + Private bool `json:"private"` AllowSubnets []string `json:"allowSubnets,omitempty"` Vlan string `json:"vlan,omitempty"`