Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator; BGP ports default to 179 #465

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 8 additions & 0 deletions api/v1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,18 @@ type BgpSpec struct {
// +optional
HoldTime string `json:"hold-time,omitempty"`

// +kubebuilder:default=179
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=65535

// BGP listening port of the Gateway Router.
// +optional
RemotePort *uint16 `json:"remote-port,omitempty"`

// +kubebuilder:default=179
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=65535

// BGP listening port of the Attractor FrontEnds.
// +optional
LocalPort *uint16 `json:"local-port,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/meridio.nordix.org_gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,20 @@ spec:
format: int32
type: integer
local-port:
default: 179
description: BGP listening port of the Attractor FrontEnds.
maximum: 65535
minimum: 1
type: integer
remote-asn:
description: The ASN number of the Gateway Router
format: int32
type: integer
remote-port:
default: 179
description: BGP listening port of the Gateway Router.
maximum: 65535
minimum: 1
type: integer
type: object
protocol:
Expand Down