Skip to content

Commit

Permalink
fix: add omitempty to subnet spec
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Aug 2, 2022
1 parent c9ac0cd commit 47e39fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Empty file modified hack/update-codegen-docker.sh
100644 → 100755
Empty file.
28 changes: 14 additions & 14 deletions pkg/apis/kubeovn/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,41 +101,41 @@ 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"`

Vips []string `json:"vips,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"`

EnableDHCP bool `json:"enableDHCP"`
DHCPv4Options string `json:"dhcpV4Options"`
DHCPv6Options string `json:"dhcpV6Options"`
EnableDHCP bool `json:"enableDHCP,omitempty"`
DHCPv4Options string `json:"dhcpV4Options,omitempty"`
DHCPv6Options string `json:"dhcpV6Options,omitempty"`

EnableIPv6RA bool `json:"enableIPv6RA"`
IPv6RAConfigs string `json:"ipv6RAConfigs"`
EnableIPv6RA bool `json:"enableIPv6RA,omitempty"`
IPv6RAConfigs string `json:"ipv6RAConfigs,omitempty"`

Acls []Acl `json:"acls,omitempty"`
}
Expand Down

0 comments on commit 47e39fb

Please sign in to comment.