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 3e77c51 commit 020b20d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Empty file modified hack/update-codegen-docker.sh
100644 → 100755
Empty file.
16 changes: 8 additions & 8 deletions pkg/apis/kubeovn/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,30 +99,30 @@ 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"`

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

// ConditionType encodes information on the condition
Expand Down

0 comments on commit 020b20d

Please sign in to comment.