Skip to content

Commit

Permalink
feat(AM-11741): specify protocol for slice gw LB
Browse files Browse the repository at this point in the history
Signed-off-by: Mridul <mridulgain@gmail.com>
  • Loading branch information
mridulgain committed Oct 25, 2023
1 parent 8be3403 commit 696a035
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/v1alpha1/sliceconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ type SliceGatewayServiceType struct {
//+kubebuilder:default:=NodePort
//+kubebuilder:validation:Enum:=NodePort;LoadBalancer
Type string `json:"type"`
// +kubebuilder:validation:Required
//+kubebuilder:default:=UDP
//+kubebuilder:validation:Enum:=TCP;UDP
Protocol string `json:"protocol"`
}

// QOSProfile is the QOS Profile configuration from backend
Expand Down
3 changes: 3 additions & 0 deletions pkg/worker/v1alpha1/workersliceconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ type WorkerSliceGatewayProvider struct {
//+kubebuilder:default:=NodePort
//+kubebuilder:validation:Enum:=NodePort;LoadBalancer
SliceGatewayServiceType string `json:"sliceGatewayServiceType,omitempty"`
//+kubebuilder:default:=UDP
//+kubebuilder:validation:Enum:=TCP;UDP
SliceGatewayProtocol string `json:"sliceGatewayProtocol,omitempty"`
}

// QOSProfile is the QOS Profile configuration from backend
Expand Down
13 changes: 8 additions & 5 deletions pkg/worker/v1alpha1/workerslicegateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ type WorkerSliceGatewaySpec struct {
GatewayHostType string `json:"gatewayHostType,omitempty"`
//+kubebuilder:default:=NodePort
//+kubebuilder:validation:Enum:=NodePort;LoadBalancer
GatewayConnectivityType string `json:"gatewayConnectivityType,omitempty"`
GatewayCredentials GatewayCredentials `json:"gatewayCredentials,omitempty"`
LocalGatewayConfig SliceGatewayConfig `json:"localGatewayConfig,omitempty"`
RemoteGatewayConfig SliceGatewayConfig `json:"remoteGatewayConfig,omitempty"`
GatewayNumber int `json:"gatewayNumber,omitempty"`
GatewayConnectivityType string `json:"gatewayConnectivityType,omitempty"`
//+kubebuilder:default:=UDP
//+kubebuilder:validation:Enum:=TCP;UDP
GatewayProtocol string `json:"gatewayProtocol,omitempty"`
GatewayCredentials GatewayCredentials `json:"gatewayCredentials,omitempty"`
LocalGatewayConfig SliceGatewayConfig `json:"localGatewayConfig,omitempty"`
RemoteGatewayConfig SliceGatewayConfig `json:"remoteGatewayConfig,omitempty"`
GatewayNumber int `json:"gatewayNumber,omitempty"`
}

type SliceGatewayConfig struct {
Expand Down

0 comments on commit 696a035

Please sign in to comment.