From b3720e4831a169145a17118d29ec183174eedc2a Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Wed, 22 Jan 2025 13:15:50 -0500 Subject: [PATCH] Deprecate singular Endpoint IP fields Signed-off-by: Tom Pantelis --- pkg/apis/submariner.io/v1/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/apis/submariner.io/v1/types.go b/pkg/apis/submariner.io/v1/types.go index 2ae49310e..4932d0f14 100644 --- a/pkg/apis/submariner.io/v1/types.go +++ b/pkg/apis/submariner.io/v1/types.go @@ -78,6 +78,7 @@ type EndpointSpec struct { // +kubebuilder:validation:MinLength=1 ClusterID string `json:"cluster_id"` CableName string `json:"cable_name"` + // Deprecated: Get/SetHealthCheckIP() or, if necessary, HealthCheckIPs // +optional HealthCheckIP string `json:"healthCheckIP,omitempty"` // +kubebuilder:validation:MaxItems:=2 @@ -85,11 +86,13 @@ type EndpointSpec struct { HealthCheckIPs []string `json:"healthCheckIPs,omitempty"` Hostname string `json:"hostname"` Subnets []string `json:"subnets"` + // Deprecated: Use Get/SetPrivateIP() or, if necessary, PrivateIPs // +optional PrivateIP string `json:"private_ip,omitempty"` // +kubebuilder:validation:MaxItems:=2 // +optional PrivateIPs []string `json:"privateIPs,omitempty"` + // Deprecated: Set/SetPublicIP() or, if necessary, PublicIPs // +optional PublicIP string `json:"public_ip,omitempty"` // +kubebuilder:validation:MaxItems:=2