Skip to content

Commit 8853156

Browse files
authored
Merge branch 'main' into make-issuer-optional
2 parents 2f77ec1 + 1b09bfa commit 8853156

File tree

127 files changed

+11062
-1767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+11062
-1767
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ site
2626
*.bak
2727
scripts/aws_sdk_model_override/*
2828
/gomock_reflect*
29+
config/crd/bases/gateway.k8s.aws_listenerruleconfigurations.yaml
30+
config/crd/bases/gateway.k8s.aws_loadbalancerconfigurations.yaml
31+
config/crd/bases/gateway.k8s.aws_targetgroupconfigurations.yaml

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.4
1+
1.24.6

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MAKEFILE_PATH = $(dir $(realpath -s $(firstword $(MAKEFILE_LIST))))
33

44
# Image URL to use all building/pushing image targets
5-
IMG ?= public.ecr.aws/eks/aws-load-balancer-controller:v2.13.3
5+
IMG ?= public.ecr.aws/eks/aws-load-balancer-controller:v2.13.4
66
# Image URL to use for builder stage in Docker build
77
GOLANG_VERSION ?= $(shell cat .go-version)
88
BUILD_IMAGE ?= public.ecr.aws/docker/library/golang:$(GOLANG_VERSION)
@@ -21,6 +21,9 @@ AWS_SDK_MODEL_OVERRIDE ?= "n"
2121
# Move Gateway API CRDs from bases directory to gateway directory
2222
MOVE_GATEWAY_CRDS = mv config/crd/bases/gateway.k8s.aws_* config/crd/gateway/
2323

24+
# Copy combined Gateway API CRDs from bases directory to helm directory
25+
COPY_GATEWAY_CRDS_TO_HELM = cp config/crd/gateway/gateway-crds.yaml helm/aws-load-balancer-controller/crds/gateway-crds.yaml
26+
2427
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
2528
ifeq (,$(shell go env GOBIN))
2629
GOBIN=$(shell go env GOPATH)/bin
@@ -67,6 +70,7 @@ crds: manifests
6770
$(MOVE_GATEWAY_CRDS)
6871
$(KUSTOMIZE) build config/crd > helm/aws-load-balancer-controller/crds/crds.yaml
6972
$(KUSTOMIZE) build config/crd/gateway > config/crd/gateway/gateway-crds.yaml
73+
$(COPY_GATEWAY_CRDS_TO_HELM)
7074

7175
# Run go fmt against code
7276
fmt:

apis/elbv2/v1beta1/ingressclassparams_types.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ type IPAMConfiguration struct {
115115
}
116116

117117
// IngressClassParamsSpec defines the desired state of IngressClassParams
118+
// +kubebuilder:validation:XValidation:rule="!(has(self.prefixListsIDs) && has(self.PrefixListsIDs))", message="cannot specify both 'prefixListsIDs' and 'PrefixListsIDs' fields"
118119
type IngressClassParamsSpec struct {
120+
// LoadBalancerName defines the name of the load balancer that will be created with this IngressClassParams.
121+
// +optional
122+
LoadBalancerName string `json:"loadBalancerName,omitempty"`
123+
119124
// CertificateArn specifies the ARN of the certificates for all Ingresses that belong to IngressClass with this IngressClassParams.
120125
// +optional
121126
CertificateArn []string `json:"certificateArn,omitempty"`
@@ -172,8 +177,14 @@ type IngressClassParamsSpec struct {
172177
// +optional
173178
IPAMConfiguration *IPAMConfiguration `json:"ipamConfiguration,omitempty"`
174179

180+
// PrefixListsIDsLegacy defines the security group prefix lists for all Ingresses that belong to IngressClass with this IngressClassParams.
181+
// Not Recommended, Use PrefixListsIDs (prefixListsIDs in JSON) instead
182+
// +optional
183+
PrefixListsIDsLegacy []string `json:"PrefixListsIDs,omitempty"`
184+
175185
// PrefixListsIDs defines the security group prefix lists for all Ingresses that belong to IngressClass with this IngressClassParams.
176-
PrefixListsIDs []string `json:"PrefixListsIDs,omitempty"`
186+
// +optional
187+
PrefixListsIDs []string `json:"prefixListsIDs,omitempty"`
177188
}
178189

179190
// +kubebuilder:object:root=true

apis/elbv2/v1beta1/targetgroupbinding_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package v1beta1
1919
import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2121
"k8s.io/apimachinery/pkg/util/intstr"
22+
"sigs.k8s.io/aws-load-balancer-controller/pkg/model/elbv2"
2223
)
2324

2425
// +kubebuilder:validation:Enum=instance;ip
@@ -139,6 +140,11 @@ type TargetGroupBindingSpec struct {
139140
// +optional
140141
TargetType *TargetType `json:"targetType,omitempty"`
141142

143+
// targetGroupProtocol is the Protocol of the TargetGroup. If unspecified, it will be automatically inferred.
144+
// +optional
145+
// +kubebuilder:validation:Enum=HTTP;HTTPS;TCP;TLS;UDP;TCP_UDP
146+
TargetGroupProtocol *elbv2.Protocol `json:"targetGroupProtocol,omitempty"`
147+
142148
// serviceRef is a reference to a Kubernetes Service and ServicePort.
143149
ServiceRef ServiceReference `json:"serviceRef"`
144150

apis/elbv2/v1beta1/zz_generated.deepcopy.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)