@@ -29,22 +29,27 @@ type WorkerSliceGatewaySpec struct {
29
29
//+kubebuilder:default:=OpenVPN
30
30
GatewayType string `json:"gatewayType,omitempty"`
31
31
//+kubebuilder:validation:Enum:=Client;Server
32
- GatewayHostType string `json:"gatewayHostType,omitempty"`
33
- GatewayCredentials GatewayCredentials `json:"gatewayCredentials,omitempty"`
34
- LocalGatewayConfig SliceGatewayConfig `json:"localGatewayConfig,omitempty"`
35
- RemoteGatewayConfig SliceGatewayConfig `json:"remoteGatewayConfig,omitempty"`
36
- GatewayNumber int `json:"gatewayNumber,omitempty"`
32
+ GatewayHostType string `json:"gatewayHostType,omitempty"`
33
+ //+kubebuilder:default:=NodePort
34
+ //+kubebuilder:validation:Enum:=NodePort;LoadBalancer
35
+ GatewayConnectivityType string `json:"gatewayConnectivityType,omitempty"`
36
+ GatewayCredentials GatewayCredentials `json:"gatewayCredentials,omitempty"`
37
+ LocalGatewayConfig SliceGatewayConfig `json:"localGatewayConfig,omitempty"`
38
+ RemoteGatewayConfig SliceGatewayConfig `json:"remoteGatewayConfig,omitempty"`
39
+ GatewayNumber int `json:"gatewayNumber,omitempty"`
37
40
}
38
41
39
42
type SliceGatewayConfig struct {
40
- NodeIp string `json:"nodeIp,omitempty"`
41
- NodeIps []string `json:"nodeIps,omitempty"`
42
- NodePort int `json:"nodePort,omitempty"`
43
- NodePorts []int `json:"nodePorts,omitempty"`
44
- GatewayName string `json:"gatewayName,omitempty"`
45
- ClusterName string `json:"clusterName,omitempty"`
46
- VpnIp string `json:"vpnIp,omitempty"`
47
- GatewaySubnet string `json:"gatewaySubnet,omitempty"`
43
+ //+kubebuilder:deprecatedversion:warning="worker/v1alpha1 NodeIp is deprecated...use NodeIps"
44
+ NodeIp string `json:"nodeIp,omitempty"`
45
+ NodeIps []string `json:"nodeIps,omitempty"`
46
+ LoadBalancerIps []string `json:"loadBalancerIps,omitempty"`
47
+ NodePort int `json:"nodePort,omitempty"`
48
+ NodePorts []int `json:"nodePorts,omitempty"`
49
+ GatewayName string `json:"gatewayName,omitempty"`
50
+ ClusterName string `json:"clusterName,omitempty"`
51
+ VpnIp string `json:"vpnIp,omitempty"`
52
+ GatewaySubnet string `json:"gatewaySubnet,omitempty"`
48
53
}
49
54
50
55
type GatewayCredentials struct {
0 commit comments