Skip to content
Open
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
14 changes: 14 additions & 0 deletions apis/gateway/v1beta1/loadbalancerconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,20 @@ type LoadBalancerConfigurationSpec struct {
// +optional
MergingMode *LoadBalancerConfigMergeMode `json:"mergingMode,omitempty"`

// region is the AWS region where the load balancer will be deployed. When unset, the controller's default region is used.
// When set to a different region, vpcId, vpcSelector, or loadBalancerSubnets with identifiers must be set so the VPC can be resolved.
// +optional
Region *string `json:"region,omitempty"`

// vpcId is the VPC ID in the target region. Used when region is set (and especially when it differs from the controller default).
// +optional
VpcID *string `json:"vpcId,omitempty"`

// vpcSelector selects the VPC in the target region by tags. Each key is a tag name; the value list is the allowed tag values.
// A VPC matches if it has each tag key with one of the corresponding values. Exactly one VPC must match in the target region.
// +optional
VpcSelector *map[string][]string `json:"vpcSelector,omitempty"`

// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=32
// loadBalancerName defines the name of the LB to provision. If unspecified, it will be automatically generated.
Expand Down
30 changes: 30 additions & 0 deletions apis/gateway/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions config/crd/gateway/gateway-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,11 @@ spec:
required:
- capacityUnits
type: object
region:
description: |-
region is the AWS region where the load balancer will be deployed. When unset, the controller's default region is used.
When set to a different region, vpcId, vpcSelector, or loadBalancerSubnets with identifiers must be set so the VPC can be resolved.
type: string
scheme:
description: scheme defines the type of LB to provision. If unspecified,
it will be automatically inferred.
Expand Down Expand Up @@ -772,6 +777,19 @@ spec:
type: string
description: Tags the AWS Tags on all related resources to the gateway.
type: object
vpcId:
description: vpcId is the VPC ID in the target region. Used when region
is set (and especially when it differs from the controller default).
type: string
vpcSelector:
additionalProperties:
items:
type: string
type: array
description: |-
vpcSelector selects the VPC in the target region by tags. Each key is a tag name; the value list is the allowed tag values.
A VPC matches if it has each tag key with one of the corresponding values. Exactly one VPC must match in the target region.
type: object
wafV2:
description: WAFv2 define the AWS WAFv2 settings for a Gateway [Application
Load Balancer]
Expand Down
18 changes: 18 additions & 0 deletions config/crd/gateway/gateway.k8s.aws_loadbalancerconfigurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ spec:
required:
- capacityUnits
type: object
region:
description: |-
region is the AWS region where the load balancer will be deployed. When unset, the controller's default region is used.
When set to a different region, vpcId, vpcSelector, or loadBalancerSubnets with identifiers must be set so the VPC can be resolved.
type: string
scheme:
description: scheme defines the type of LB to provision. If unspecified,
it will be automatically inferred.
Expand Down Expand Up @@ -317,6 +322,19 @@ spec:
type: string
description: Tags the AWS Tags on all related resources to the gateway.
type: object
vpcId:
description: vpcId is the VPC ID in the target region. Used when region
is set (and especially when it differs from the controller default).
type: string
vpcSelector:
additionalProperties:
items:
type: string
type: array
description: |-
vpcSelector selects the VPC in the target region by tags. Each key is a tag name; the value list is the allowed tag values.
A VPC matches if it has each tag key with one of the corresponding values. Exactly one VPC must match in the target region.
type: object
wafV2:
description: WAFv2 define the AWS WAFv2 settings for a Gateway [Application
Load Balancer]
Expand Down
Loading