Skip to content

Commit

Permalink
fix: add omitempty to subnet spec (#1765)
Browse files Browse the repository at this point in the history
(cherry picked from commit c10c711)
  • Loading branch information
oilbeater committed Aug 3, 2022
1 parent fd67643 commit 8bb8b17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Empty file modified hack/update-codegen-docker.sh
100644 → 100755
Empty file.
18 changes: 9 additions & 9 deletions pkg/apis/kubeovn/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,32 +101,32 @@ type Subnet struct {
}

type SubnetSpec struct {
Default bool `json:"default"`
Default bool `json:"default,omitempty"`
Vpc string `json:"vpc,omitempty"`
Protocol string `json:"protocol"`
Protocol string `json:"protocol,omitempty"`
Namespaces []string `json:"namespaces,omitempty"`
CIDRBlock string `json:"cidrBlock"`
Gateway string `json:"gateway"`
ExcludeIps []string `json:"excludeIps,omitempty"`
Provider string `json:"provider,omitempty"`

GatewayType string `json:"gatewayType"`
GatewayNode string `json:"gatewayNode"`
NatOutgoing bool `json:"natOutgoing"`
GatewayType string `json:"gatewayType,omitempty"`
GatewayNode string `json:"gatewayNode,omitempty"`
NatOutgoing bool `json:"natOutgoing,omitempty"`

ExternalEgressGateway string `json:"externalEgressGateway,omitempty"`
PolicyRoutingPriority uint32 `json:"policyRoutingPriority,omitempty"`
PolicyRoutingTableID uint32 `json:"policyRoutingTableID,omitempty"`

Private bool `json:"private"`
Private bool `json:"private,omitempty"`
AllowSubnets []string `json:"allowSubnets,omitempty"`

Vlan string `json:"vlan,omitempty"`
HtbQos string `json:"htbqos,omitempty"`

LogicalGateway bool `json:"logicalGateway"`
DisableGatewayCheck bool `json:"disableGatewayCheck"`
DisableInterConnection bool `json:"disableInterConnection"`
LogicalGateway bool `json:"logicalGateway,omitempty"`
DisableGatewayCheck bool `json:"disableGatewayCheck,omitempty"`
DisableInterConnection bool `json:"disableInterConnection,omitempty"`
}

// ConditionType encodes information on the condition
Expand Down

0 comments on commit 8bb8b17

Please sign in to comment.