Skip to content

Commit 940fa5d

Browse files
committed
apis: add ipFamilies field
Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
1 parent 5e5359a commit 940fa5d

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

config/crd/multicluster.x-k8s.io_serviceimports.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ spec:
7171
- ports
7272
- type
7373
properties:
74+
ipFamilies:
75+
description: IPFamilies identifies all the IPFamilies assigned for this ServiceImport.
76+
type: array
77+
items:
78+
description: |-
79+
IPFamily represents the IP Family (IPv4 or IPv6). This type is used
80+
to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies).
81+
type: string
7482
ips:
7583
description: ip will be used as the VIP for this service when type is ClusterSetIP.
7684
type: array

pkg/apis/v1alpha1/serviceimport.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ type ServiceImportSpec struct {
7171
// sessionAffinityConfig contains session affinity configuration.
7272
// +optional
7373
SessionAffinityConfig *v1.SessionAffinityConfig `json:"sessionAffinityConfig,omitempty"`
74+
// IPFamilies identifies all the IPFamilies assigned for this ServiceImport.
75+
// +optional
76+
IPFamilies []v1.IPFamily `json:"ipFamilies,omitempty"`
7477
}
7578

7679
// ServicePort represents the port on which the service is exposed

pkg/apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)