Skip to content

Commit 857b045

Browse files
feat: Allow ability to set mtu in infrav1.NetworkSpec
1 parent cd67c37 commit 857b045

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

api/v1beta1/types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ type NetworkSpec struct {
136136
// HostProject is the name of the project hosting the shared VPC network resources.
137137
// +optional
138138
HostProject *string `json:"hostProject,omitempty"`
139+
140+
// Mtu: Maximum Transmission Unit (MTU), in bytes, of packets passing through
141+
// this interconnect attachment. Only 1440 and 1500 are allowed. If not
142+
// specified, the value will default to 1440.
143+
// +optional
144+
Mtu int64 `json:"mtu,omitempty"`
139145
}
140146

141147
// LoadBalancerType defines the Load Balancer that should be created.

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpclusters.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ spec:
168168
(useful for changing apiserver port)
169169
format: int32
170170
type: integer
171+
mtu:
172+
description: |-
173+
Mtu: Maximum Transmission Unit (MTU), in bytes, of packets passing through
174+
this interconnect attachment. Only 1440 and 1500 are allowed. If not
175+
specified, the value will default to 1440.
176+
format: int64
177+
type: integer
171178
name:
172179
description: Name is the name of the network to be used.
173180
type: string

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpclustertemplates.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ spec:
185185
backend (useful for changing apiserver port)
186186
format: int32
187187
type: integer
188+
mtu:
189+
description: |-
190+
Mtu: Maximum Transmission Unit (MTU), in bytes, of packets passing through
191+
this interconnect attachment. Only 1440 and 1500 are allowed. If not
192+
specified, the value will default to 1440.
193+
format: int64
194+
type: integer
188195
name:
189196
description: Name is the name of the network to be used.
190197
type: string

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpmanagedclusters.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ spec:
164164
(useful for changing apiserver port)
165165
format: int32
166166
type: integer
167+
mtu:
168+
description: |-
169+
Mtu: Maximum Transmission Unit (MTU), in bytes, of packets passing through
170+
this interconnect attachment. Only 1440 and 1500 are allowed. If not
171+
specified, the value will default to 1440.
172+
format: int64
173+
type: integer
167174
name:
168175
description: Name is the name of the network to be used.
169176
type: string

0 commit comments

Comments
 (0)