Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
refactor to use the upstream type
  • Loading branch information
Philip Hurst committed Jan 28, 2025
commit 1249fe7865d1056f6caf8e54e290c661e1997500
Original file line number Diff line number Diff line change
Expand Up @@ -14665,6 +14665,9 @@ spec:
type: string
ipFamilies:
items:
description: |-
IPFamily represents the IP Family (IPv4 or IPv6). This type is used
to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
enum:
- IPv4
- IPv6
Expand Down Expand Up @@ -15021,6 +15024,9 @@ spec:
type: string
ipFamilies:
items:
description: |-
IPFamily represents the IP Family (IPv4 or IPv6). This type is used
to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
enum:
- IPv4
- IPv6
Expand Down Expand Up @@ -15083,6 +15089,9 @@ spec:
type: string
ipFamilies:
items:
description: |-
IPFamily represents the IP Family (IPv4 or IPv6). This type is used
to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
enum:
- IPv4
- IPv6
Expand Down Expand Up @@ -16793,6 +16802,9 @@ spec:
type: string
ipFamilies:
items:
description: |-
IPFamily represents the IP Family (IPv4 or IPv6). This type is used
to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
enum:
- IPv4
- IPv6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ func (in SchemalessObject) DeepCopy() SchemalessObject {

}

// +kubebuilder:validation:Enum=IPv4;IPv6
type IPFamily string

type ServiceSpec struct {
// +optional
Metadata *Metadata `json:"metadata,omitempty"`
Expand All @@ -52,10 +49,11 @@ type ServiceSpec struct {
// ---
// +optional
// +kubebuilder:validation:Enum=SingleStack;PreferDualStack;RequireDualStack
IPFamilyPolicy string `json:"ipFamilyPolicy,omitempty"`
IPFamilyPolicy *corev1.IPFamilyPolicy `json:"ipFamilyPolicy,omitempty"`

// +optional
IPFamilies []IPFamily `json:"ipFamilies,omitempty"`
// +kubebuilder:validation:items:Enum={IPv4,IPv6}
IPFamilies []corev1.IPFamily `json:"ipFamilies,omitempty"`

// More info: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
// ---
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.