Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 Improve godoc of the ipAddrs field #2168

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apis/v1alpha3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ type NetworkDeviceSpec struct {
Gateway6 string `json:"gateway6,omitempty"`

// IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign
// to this device.
// to this device. IP addresses must also specify the segment length in
// CIDR notation.
// Required when DHCP4 and DHCP6 are both false.
// +optional
IPAddrs []string `json:"ipAddrs,omitempty"`
Expand Down
3 changes: 2 additions & 1 deletion apis/v1alpha4/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ type NetworkDeviceSpec struct {
Gateway6 string `json:"gateway6,omitempty"`

// IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign
// to this device.
// to this device. IP addresses must also specify the segment length in
// CIDR notation.
// Required when DHCP4 and DHCP6 are both false.
// +optional
IPAddrs []string `json:"ipAddrs,omitempty"`
Expand Down
3 changes: 2 additions & 1 deletion apis/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ type NetworkDeviceSpec struct {
Gateway6 string `json:"gateway6,omitempty"`

// IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign
// to this device.
// to this device. IP addresses must also specify the segment length in
// CIDR notation.
// Required when DHCP4 and DHCP6 are both false.
// +optional
IPAddrs []string `json:"ipAddrs,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required
when DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required when
DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down Expand Up @@ -535,8 +536,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required when
DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down Expand Up @@ -1085,8 +1087,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required when
DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ spec:
ipAddrs:
description: IPAddrs is a list of one or more IPv4
and/or IPv6 addresses to assign to this device.
Required when DHCP4 and DHCP6 are both false.
IP addresses must also specify the segment length
in CIDR notation. Required when DHCP4 and DHCP6
are both false.
items:
type: string
type: array
Expand Down Expand Up @@ -529,7 +531,9 @@ spec:
ipAddrs:
description: IPAddrs is a list of one or more IPv4
and/or IPv6 addresses to assign to this device.
Required when DHCP4 and DHCP6 are both false.
IP addresses must also specify the segment length
in CIDR notation. Required when DHCP4 and DHCP6
are both false.
items:
type: string
type: array
Expand Down Expand Up @@ -988,8 +992,10 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4
and/or IPv6 addresses to assign to this device.
Required when DHCP4 and DHCP6 are both false.
and/or IPv6 addresses to assign to this device. IP
addresses must also specify the segment length
in CIDR notation. Required when DHCP4 and DHCP6
are both false.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required when
DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down Expand Up @@ -568,8 +569,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required when
DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down Expand Up @@ -1134,8 +1136,9 @@ spec:
type: string
ipAddrs:
description: IPAddrs is a list of one or more IPv4 and/or
IPv6 addresses to assign to this device. Required when
DHCP4 and DHCP6 are both false.
IPv6 addresses to assign to this device. IP addresses
must also specify the segment length in CIDR notation.
Required when DHCP4 and DHCP6 are both false.
items:
type: string
type: array
Expand Down
Loading