Skip to content

NE-1807: Rebase to v2.8.2 #23

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

Merged
merged 326 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
326 commits
Select commit Hold shift + click to select a range
c5abd18
update eksctl and default eks versions (#3120)
kishorj Mar 24, 2023
0b96889
update iam policy version to 2.4.7 (#3123)
oliviassss Mar 24, 2023
4ecd10c
fix installation.md rendering (#3127)
oliviassss Mar 28, 2023
cd9e940
doc enhacement (#3136)
oliviassss Apr 4, 2023
1c842d9
NLB documentation edits (#3129)
jimdial-aws Apr 6, 2023
966c2b5
Subnet discovery documentation edits (#3128)
jimdial-aws Apr 6, 2023
d18e523
generate manifest with service mutator and modify webhook (#3139)
jerryhe1999 Apr 6, 2023
ee82b3e
Add docker-push-w-buildx make target (#3135)
ivyostosh Apr 6, 2023
94e9343
change the flag name from disableServiceMutatorWebhook to enableServi…
jerryhe1999 Apr 11, 2023
45d93b1
adds endpoint-security-group-tags flag
Apr 12, 2023
5ad2025
adds endpointSGTags to helm chart
Apr 12, 2023
0d71626
Updates docs with typo fixes and new flag
Apr 12, 2023
3e6e07c
Merge branch 'main' of https://github.com/kubernetes-sigs/aws-load-ba…
Apr 12, 2023
a42369b
undo some autoformatting
Apr 12, 2023
8bf0c4f
Merge branch 'abitrary-tags-for-nlb-sg' of https://github.com/carflo/…
Apr 12, 2023
843e60f
formatting
Apr 12, 2023
d8a103e
add tests
Apr 12, 2023
14f5a70
cut v2.5.0 release (#3151)
oliviassss Apr 14, 2023
9bfcb09
update doc for 2.5 (#3154)
oliviassss Apr 14, 2023
e17eda2
fix validator for ingress rules without http paths (#3159)
kishorj Apr 17, 2023
9e0e5fd
chore(aws-load-balancer-controller): add all controllerConfig.feature…
kahirokunn Apr 17, 2023
06abaed
cut v2.5.1 release (#3160)
kishorj Apr 17, 2023
4d40b00
chore(aws-load-balancer-controller): update all controllerConfig.feat…
kahirokunn Apr 20, 2023
4cf7c33
add objectSelector to the controller webhooks (#3165)
kishorj Apr 20, 2023
ff8c13d
refactor backend SG provider (#2836)
kishorj Apr 24, 2023
16bf032
Add env values from Secret in the same way as EBS CSI driver does
stelucz May 9, 2023
5317c41
cherry-pick: Support AWS RGT APIs with feature flag (#3186) (#3193)
oliviassss May 12, 2023
1645277
check sslpolicy on both sdkLS and resLS (#3196)
oliviassss May 15, 2023
a872e76
Fix typo in mkdocs.yml file (#3202)
Dragotic May 19, 2023
fe6f4c0
cut v2.5.2 release (#3205)
oliviassss May 19, 2023
ba7df31
update go.sum (#3206)
oliviassss May 19, 2023
70b57fb
refactor e2e tests
oliviassss May 25, 2023
2535aaa
Merge pull request #3211 from oliviassss/refactor-e2e
k8s-ci-robot May 26, 2023
77af1c3
add new env TEST_IMAGE_REGISTRY to e2e script
oliviassss May 26, 2023
fb9176d
Merge pull request #3213 from oliviassss/refactor-e2e-script
k8s-ci-robot May 27, 2023
580134b
Explicitly setting CertManager APIVersion to V1 (#3189)
hawkesn May 30, 2023
e8ebc38
Fix formatting (#3219)
hsusanoo May 31, 2023
b2f4074
refactor e2e framework and add env PROD_IMAGE_REGISTRY to test script
oliviassss Jun 1, 2023
70440e0
Merge pull request #3221 from oliviassss/refactor-e2e-script
k8s-ci-robot Jun 1, 2023
c156a14
address M00nF1sh's review
stelucz Jun 6, 2023
1ea04c7
fix typo in test script (#3226)
oliviassss Jun 6, 2023
283ca6a
chore: Added dependabot (#3228)
ellistarn Jun 8, 2023
684e9bb
rework to be able to specify secret name
stelucz Jun 8, 2023
f7596dd
fix readme
stelucz Jun 9, 2023
9bf753b
Remove policy/v1beta1 since the min supported k8s version supports po…
rdrgmnzs Jun 9, 2023
6dd3782
update aws partition in test script and add iam policy for iso region…
oliviassss Jun 15, 2023
0f7612a
Update dependency and base image (#3239)
oliviassss Jun 19, 2023
e34378d
update to go 1.20.5 (#3253)
oliviassss Jun 22, 2023
940efc7
cut v2.5.3 release (#3255)
oliviassss Jun 22, 2023
397753d
Merge branch 'main' of https://github.com/kubernetes-sigs/aws-load-ba…
carflo Jul 10, 2023
582c1a7
revert helm changes
carflo Jul 10, 2023
ef54d46
revert helm changes
carflo Jul 10, 2023
2adaeb6
fixes from feedback
Jul 10, 2023
710ef1d
Update docs/guide/service/nlb.md
carflo Jul 11, 2023
9375a3c
Update pkg/config/controller_config.go
carflo Jul 12, 2023
fd59e21
Update pkg/config/controller_config.go
carflo Jul 12, 2023
1c8a3cc
update var name
Jul 12, 2023
fb2f170
fix the bug that evenhanlder ignores the update triggered per sync-pe…
oliviassss Jul 12, 2023
fe7f0db
update protobuf to the latest version (#3274)
oliviassss Jul 12, 2023
2f7ffdc
doc enhancement for waf addons and reconciliation (#3281)
oliviassss Jul 12, 2023
fd1bbbb
cut v2.5.4 release (#3282)
oliviassss Jul 12, 2023
20459f6
fix: typo in PR template (#3267)
nakamume Jul 21, 2023
fd57323
Docs: Fix typo in `nlb.md`. (#3257)
Gacko Jul 21, 2023
d177c89
Add note about keeping OWNERS in sync (#3289)
johngmyers Jul 25, 2023
5e8c6df
don't block TGB reconciliation loop on failed SG ingress reconciliation
michaelsaah Jul 26, 2023
2081cc5
Add warning in doc for ServiceMutatorWebhook (#3180)
punkwalker Jul 26, 2023
513c8fc
test/framework: replace deprecated ioutil.ReadAll (#3256)
komisan19 Jul 28, 2023
ed66ff1
Provide better explanation of failure to find a subnet (#3292)
johngmyers Jul 28, 2023
d1b8fbb
Bump github.com/aws/aws-sdk-go from 1.44.184 to 1.44.294 (#3271)
johngmyers Jul 29, 2023
90dac78
Bump github.com/onsi/ginkgo/v2 from 2.6.0 to 2.11.0
dependabot[bot] Aug 1, 2023
e071573
fix the race condition in pod cache and endpoint resolver
oliviassss Aug 3, 2023
8295f34
add oliviassss as reviewer
oliviassss Aug 3, 2023
9e8f685
Merge pull request #3306 from oliviassss/update-file
oliviassss Aug 4, 2023
5c892f5
Make Ingress validating webhook ignore ingresses not managed by AWS L…
johngmyers Aug 4, 2023
9b27d26
Merge pull request #3305 from oliviassss/fix-ep
k8s-ci-robot Aug 4, 2023
d6e8667
group errors, emit one event per reconcile, requeue on failure
michaelsaah Aug 4, 2023
6b78ca3
whitespace
michaelsaah Aug 4, 2023
78d101d
Doc: Add note for rename behavior of IngressGroup (#3283)
yubingjiaocn Aug 7, 2023
d6844b8
Update the RSA filter for Cert discovery
shraddhabang Aug 7, 2023
7902e2a
Allow TLS 1.2 with restricted ciphers for webhooks
johngmyers Aug 8, 2023
573e023
Merge pull request #3314 from shraddhabang/rsaFilter
k8s-ci-robot Aug 9, 2023
ca1086f
Merge pull request #3318 from johngmyers/tls-vers
oliviassss Aug 9, 2023
05e6f58
Merge pull request #3300 from kubernetes-sigs/dependabot/go_modules/g…
k8s-ci-robot Aug 10, 2023
8664ad4
Add support for NLB security groups
kishorj Aug 27, 2021
09b6030
refactor targetGroupBinding network builder
kishorj Apr 26, 2023
b805cc2
Merge pull request #3329 from oliviassss/nlb-sg
k8s-ci-robot Aug 10, 2023
f12ab24
cut v2.6.0 release
shraddhabang Aug 10, 2023
4d746c5
Merge pull request #3331 from shraddhabang/release2.6
k8s-ci-robot Aug 10, 2023
0281ac0
Update live docs for NLB-SG feature release
shraddhabang Aug 10, 2023
35126b2
Remove dependency on aws-sdk-go-v2 (#3320)
johngmyers Aug 10, 2023
00681b8
Addressing the comment
shraddhabang Aug 10, 2023
800cc89
Update docs/guide/service/annotations.md
shraddhabang Aug 11, 2023
3cb255f
Apply suggestions from code review
shraddhabang Aug 14, 2023
7100c0f
check the canary test result and exit if it failed
oliviassss Aug 11, 2023
95f7b06
Merge pull request #3332 from shraddhabang/NLB-SG-docs
k8s-ci-robot Aug 14, 2023
aa893b5
Merge pull request #3335 from oliviassss/canary-fix
k8s-ci-robot Aug 14, 2023
0ed7394
wait for the TG to be healthy before cleanup any resource
oliviassss Aug 16, 2023
db7416e
increase timeout to 2h in ci scripts
oliviassss Aug 18, 2023
4607bb4
slice init style suggestion
michaelsaah Aug 21, 2023
d041be2
add a debug line in ci script for timeout issue
oliviassss Aug 21, 2023
8c91aab
change to check lb available, remove debug lines
oliviassss Aug 21, 2023
3e8fea3
Merge pull request #3343 from oliviassss/e2e-fix
k8s-ci-robot Aug 21, 2023
4c00e46
Add doc updates (#3347)
oliviassss Aug 22, 2023
f4fb676
clean up resolveEndpointSGForENI logic
Aug 22, 2023
ad29cc0
update flag and its variable name
Aug 22, 2023
1f6503d
update var name
Aug 22, 2023
dbf98e0
Change of text "your-cluster-name" (#3152)
git4example Aug 23, 2023
5cbd0e4
Add deprecated apiGroups detection on workflow. (#3351)
jerryhe1999 Aug 23, 2023
55ddccb
udpate prow script to install lbc via manifest for ADC (#3355)
oliviassss Aug 24, 2023
b0ec7ee
use 'service' prefix for var name
Aug 28, 2023
42b398e
remove pre requisite check in prow script
oliviassss Aug 28, 2023
2be7cec
Merge pull request #3364 from oliviassss/prow-fix
k8s-ci-robot Aug 29, 2023
ca8a02f
update tests
Aug 29, 2023
f3a9742
use string for wantErr
Aug 29, 2023
4e697f8
Merge pull request #3296 from michaelsaah/issue-3285-fix
k8s-ci-robot Aug 30, 2023
074beee
Merge pull request #3147 from carflo/abitrary-tags-for-nlb-sg
k8s-ci-robot Aug 31, 2023
a6decce
remove unnecessary patch requests
M00nF1sh Sep 1, 2023
71c45f5
Merge pull request #3373 from M00nF1sh/main
k8s-ci-robot Sep 2, 2023
d8e3b59
update docs for v2.6.1 release
M00nF1sh Sep 12, 2023
e619a48
Merge pull request #3384 from M00nF1sh/main
k8s-ci-robot Sep 12, 2023
12124ad
remove unnecessary cleanup in prow script (#3387)
oliviassss Sep 19, 2023
977db73
update file paths in prow script for adc regions (#3398)
oliviassss Sep 25, 2023
e4e6d90
update ci e2e script for cert IDs (#3392)
oliviassss Sep 26, 2023
09604a1
enable nlb-instance e2e tests for ipv6
oliviassss Sep 13, 2023
db44beb
Merge pull request #3407 from oliviassss/e2e-nlb-instance
k8s-ci-robot Sep 29, 2023
eacb0c3
update prow script (#3406)
oliviassss Sep 29, 2023
873ac0b
feat: resolve health check port name for NLB
fad3t Oct 3, 2023
d06fdcf
fix: remove service from function args
fad3t Oct 5, 2023
af194db
revise
geoffcline Oct 2, 2023
6c14e0b
update container name in prow script
oliviassss Oct 11, 2023
b5b2a53
draft
geoffcline Oct 11, 2023
ff442af
Merge pull request #3422 from oliviassss/prow-update
k8s-ci-robot Oct 11, 2023
e5ff687
revise
geoffcline Oct 13, 2023
1abc9bb
doc updates (#3426)
oliviassss Oct 13, 2023
19e855e
Stricter dependency/security review
dims Oct 14, 2023
22ce8e9
Merge pull request #3429 from dims/stricter-dependency-security-review
k8s-ci-robot Oct 16, 2023
36c6c4f
Expose ingress configuration options for missing backends (#3342)
kc9ddi Oct 16, 2023
5a73154
fix test failure
oliviassss Oct 16, 2023
631041d
Merge pull request #3419 from fad3t/feat/nlb-resolve-port-name
k8s-ci-robot Oct 16, 2023
c78d2ca
Add new feature gate to remove subnets minimal count restirction
jerryhe1999 Oct 13, 2023
3120390
Add new feature gate to values.yaml.
jerryhe1999 Oct 18, 2023
276c693
Merge pull request #3432 from oliviassss/fix-testflow
k8s-ci-robot Oct 18, 2023
89a3a6f
fixup
geoffcline Oct 24, 2023
e2aa566
fixup
geoffcline Oct 25, 2023
3900e42
fixup
geoffcline Oct 25, 2023
72602d3
Merge pull request #3425 from geoffcline/gdc-revise-sg
k8s-ci-robot Oct 26, 2023
290c878
Add documentation description for feature gate ALBSingleSubnet
jerryhe1999 Oct 27, 2023
6ecfc62
enable ingress instance e2e test for ipv6 (#3416)
oliviassss Oct 27, 2023
aa131a8
Add load balancer type check
jerryhe1999 Oct 27, 2023
e172a9f
Adjust check to make it more straightforward
jerryhe1999 Oct 27, 2023
70b2799
Merge pull request #3437 from jerryhe1999/feature-alb-subnets
k8s-ci-robot Nov 2, 2023
d3f1040
Merge pull request #3192 from stelucz/main
k8s-ci-robot Nov 2, 2023
cbccb61
Update SECURITY_CONTACTS
orsenthil Nov 7, 2023
82301db
Merge pull request #3473 from orsenthil/patch-5
k8s-ci-robot Nov 7, 2023
9ed385c
Fix typo of SecurityGroups variable
ysam12345 Nov 10, 2023
c39f6b6
update go from 1.21.3 to 1.21.4 (#3484)
oliviassss Nov 15, 2023
493bb0a
doc update for automated target weights (#3496)
oliviassss Nov 28, 2023
b5c3af6
Add helm chart for horizontal pod autoscaler
josh-ferrell Dec 1, 2023
b4b705c
Set the flag to fail if the test fails or timesout (#3481)
jaydeokar Dec 11, 2023
0981136
Add `dims` to SECURITY_CONTACTS (#3483)
dims Dec 12, 2023
f470d28
Doc: update Spec.LoadBalancerSourceRanges to spec.loadBalancerSourceR…
Nezz7 Dec 12, 2023
f4ff5d2
Drop the Security disclosures that point to AWS security (#3467)
dims Dec 12, 2023
3c6281a
Improve documentations for tolerate-non-existent-backend-{service,act…
guessi Dec 12, 2023
2765407
Add johngmyers as approver (#3356)
johngmyers Dec 12, 2023
64f624b
bump aws-sdk-go to v1.47.13 (#3489)
oliviassss Dec 12, 2023
a99cd56
Disable WAF to run tests against YYC. (#3515)
orsenthil Dec 15, 2023
a5ecd78
update prow script to enable primary ipv6 address (#3510)
oliviassss Dec 18, 2023
13cfa32
Disable wafv2 when not available in a region
sushrk Dec 20, 2023
f38fe49
Merge pull request #3513 from sushrk/disable-wafv2
k8s-ci-robot Dec 21, 2023
612fcbd
update golang pkgs to patch CVE-2023-48795
haouc Jan 3, 2024
fd22cde
Merge pull request #3523 from haouc/main
k8s-ci-robot Jan 5, 2024
cfff89c
improve the enable primary ipv6 address and TEST_ID in prow script (#…
oliviassss Jan 5, 2024
0b82ebb
add oliviassss as approver (#3534)
oliviassss Jan 23, 2024
06766f8
fix the ci tests failure by bypassing nodegroup eviction
oliviassss Jan 25, 2024
0323c82
Merge pull request #3539 from oliviassss/e2e-fix
k8s-ci-robot Jan 25, 2024
2223921
Merge pull request #3477 from ysam12345/fix-security-group-variable-typo
k8s-ci-robot Jan 25, 2024
ff35f66
Merge pull request #3502 from josh-ferrell/feature-hpa
k8s-ci-robot Jan 25, 2024
9bdbf66
chore(readiness-probe): add webhook readiness check (#3375)
davidkl97 Jan 26, 2024
1a8bfc0
Update mkdocs.yml (#3520)
henriquesantanati Jan 26, 2024
d0c13bf
Implement mutual TLS authentication support for Ingress (#3532)
shraddhabang Jan 26, 2024
1709ae0
Improvement for the error log while Subnet Discovery failed
guessi Jan 30, 2024
41ebb0b
fix: Add revisionHistoryLimit override (#3486)
bodgit Jan 30, 2024
4feff25
Merge pull request #3546 from guessi/issue-3545
k8s-ci-robot Jan 31, 2024
a95e471
Doc updates for mTLS feature and minor documentation bugs (#3547)
shraddhabang Jan 31, 2024
be35e93
Adding the support for Unhealthy.draining state (#3548)
shraddhabang Jan 31, 2024
ed00c81
cut v2.7.0 release (#3549)
shraddhabang Jan 31, 2024
c8ad6a7
Fix Helm chart version
shraddhabang Feb 1, 2024
2ce25f4
Merge pull request #3551 from shraddhabang/main
shraddhabang Feb 1, 2024
2ca0a68
fix dependency review workflow
oliviassss Feb 5, 2024
004e2ab
Merge pull request #3557 from oliviassss/fix-deps-workflow
k8s-ci-robot Feb 5, 2024
c77b6eb
add tags cache for elb (#3550)
M00nF1sh Feb 6, 2024
0d5f45d
update helm chart for ServiceTargetENISGTags and README
oliviassss Feb 6, 2024
e8e9fa9
Merge pull request #3558 from oliviassss/helm-update
k8s-ci-robot Feb 7, 2024
32a3339
Add a note to recommend to use compatible chart and image versions (#…
shraddhabang Feb 7, 2024
e5fdc89
log enhancement for enabling RGT API (#3564)
oliviassss Feb 8, 2024
95e362a
fix log level in listener manager and tagging manager (#3573)
oliviassss Feb 12, 2024
01a619f
bump up controller-gen version and update manifests (#3580)
oliviassss Feb 19, 2024
c6f86fc
docs: ingress subnets annotation - clarify locale differences (#3579)
alebedev87 Feb 19, 2024
07fe92f
docs : update external-dns example
ArcoKim Feb 22, 2024
3ad2391
feat: allowed ACM cert discovery to filter on CA ARNs (#3565) (#3591)
the-technat Feb 23, 2024
b63a294
Add example for NLB target-group-attributes to enable unhealthy targe…
jukie Feb 27, 2024
20e667d
fix: ca-filter causing expontentially more api-calls (#3608)
Mar 13, 2024
631aaf0
Repo controlled build go version (#3598)
xdu31 Mar 14, 2024
a513f0c
update go version to mitigate CVE (#3615)
haouc Mar 15, 2024
ac21af6
feat: Support TargetGroupBinding on targets outside the cluster's VPC…
ikosenn Mar 15, 2024
7809766
Add CertficateArn field to IngressClassParam
Nezz7 Mar 17, 2024
8296620
Adding support for Availability Zone Affinity (#3470)
alex-berger Mar 19, 2024
8393192
Update golang.org/protobuf version to fix CVE-2024-24786 (#3618)
shraddhabang Mar 19, 2024
bec483d
fix: Adding VpcID to TGB broke upgradability.
ikosenn Mar 30, 2024
c2515fe
Merge pull request #3630 from ikosenn/fix-tgb-backwards-compatibility
k8s-ci-robot Apr 1, 2024
30a15d5
Add support for optionally enforcing NLB security groups on PrivateLi…
wweiwei-li Apr 4, 2024
c11d374
Update .go-version
rajeeshckr Apr 11, 2024
33838dd
Merge pull request #3642 from rajeeshckr/main
k8s-ci-robot Apr 15, 2024
97e9bd1
[INF-12851] Make sure service updates preserve lb class (#3641)
diversario Apr 18, 2024
7a470f9
Feature Support --load-balancer-class in Helm Chart(#3629) (#3647)
yoonhyunwoo Apr 19, 2024
5257105
Add DescribeTrustStores to IAM policy for China partition
andreybutenko Apr 22, 2024
102b616
Merge pull request #3590 from ArcoKim/update-external-dns-docs
k8s-ci-robot Apr 22, 2024
74184a0
Docs: clarify behavior for `manage-backend-security-group-rules`
rgs1 Apr 23, 2024
807d1a2
Provide more customization options for the service mutator webhook (#…
diversario Apr 23, 2024
1a83911
Merge pull request #3662 from andreybutenko/2024-04-22-mtls-china-par…
k8s-ci-robot Apr 24, 2024
7d34a0d
feat: Specify Managed Prefix List for access control (#3584)
yo-ga Apr 24, 2024
8979c65
upgrade x/net to v0.23.0 (#3659)
oliviassss Apr 28, 2024
4ffee8d
Merge pull request #3661 from rgs1/fix-default-for-aws-load-balancer-…
k8s-ci-robot May 1, 2024
b44633a
feat(chart) : add RuntimeClassName (#3646)
LiuQhahah May 2, 2024
0173b0e
Merge pull request #3616 from Nezz7/main
k8s-ci-robot May 6, 2024
5df1ab7
Add validation for vpcID in tgb spec (#3663)
shraddhabang May 7, 2024
615eac3
[helm chart] Allow passing template values for clusterName, region an…
adriananeci May 7, 2024
f63a5bc
feat(chart): Added additional service monitor functionality (#3645)
stevehipwell May 7, 2024
1e567b8
[DOC] add KAT documentation
ChuksGrinage May 8, 2024
3bbfb9d
Merge pull request #3682 from ChuksGrinage/doc-add-kat-documentation
k8s-ci-robot May 8, 2024
334ffcf
Add non-alphanumeric input validation test for vpcID and fix typo (#3…
shraddhabang May 10, 2024
c8d6aa3
Add dualstack without public IPv4 IP Address type
wweiwei-li May 9, 2024
2a66d99
Merge pull request #3688 from wweiwei-li/dualstackWithoutIPV4
k8s-ci-robot May 10, 2024
d3bbf91
Add IPAddressTypeDualStackWithoutPublicIPV4 (#3693)
wweiwei-li May 14, 2024
9b4999b
restrict dual-stack-without-ipv4 e2e test to pdx only (#3700)
oliviassss May 16, 2024
315e417
cut v2.8.0 release
wweiwei-li May 16, 2024
6afa404
Merge pull request #3702 from wweiwei-li/release-2.8
k8s-ci-robot May 16, 2024
34353bc
cherry pick commits from main (#3727)
oliviassss May 30, 2024
c0f4c62
fixed the mTLS bug (#3717) (#3730)
oliviassss May 31, 2024
e6ce604
cut v2.8.1 release (#3733)
oliviassss May 31, 2024
8001b59
cherry-pick commits from main into release-2.8 (#3801)
M00nF1sh Aug 9, 2024
f39ae43
cut v2.8.2 release (#3802)
M00nF1sh Aug 9, 2024
cf8c1c5
Merge kubernetes-sigs/aws-load-balancer-controller v2.8.2
alebedev87 Oct 18, 2024
b1b6f18
UPSTREAM: <carry>: Added downstream owners file
arjunrn Apr 14, 2022
cfba6a7
UPSTREAM: <carry>: Added Dockerfile used in Openshift builds
arjunrn Feb 9, 2022
36afae9
UPSTREAM: <carry>: Add document with procedure for rebasing
arjunrn Apr 5, 2022
5b2c3e4
UPSTREAM: <carry>: Add ci_operator.yaml config for build root image
Oct 27, 2022
a371a27
UPSTREAM: <drop>: Vendored dependencies for 2.8.2 rebase
alebedev87 Sep 11, 2024
4f6c8f0
UPSTREAM: <carry>: Explicitly include mockgen model package in vendor…
alebedev87 Sep 11, 2024
03a729d
UPSTREAM: <carry>: CI - update golang to 1.22 for 2.8.2 rebase
alebedev87 Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.18-openshift-4.12
tag: rhel-8-release-golang-1.22-openshift-4.17
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!--
Please explain the changes you made here.

Help your reviewers my guiding them through your key changes,
Help your reviewers by guiding them through your key changes,
implementation decisions etc.
You can even include snippets of output or screenshots.

Expand Down
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
21 changes: 21 additions & 0 deletions .github/workflows/deprecated-api-detect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deprecated API detect
on:
push:
branches: [main]
permissions:
contents: read
jobs:
deprecated-apigroups:
name: Detect deprecated apiGroups
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
version=$(curl -sL https://api.github.com/repos/FairwindsOps/pluto/releases/latest | jq -r ".tag_name")
number=${version:1}
wget https://github.com/FairwindsOps/pluto/releases/download/${version}/pluto_${number}_linux_amd64.tar.gz
sudo tar -C /usr/local -xzf pluto_${number}_linux_amd64.tar.gz
- run: |
rm -rf docs/install
rm -rf config/samples
/usr/local/pluto detect-files -d .
48 changes: 48 additions & 0 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "Dependency Review"
on:
push:
branches:
- main
- 'release-*'
pull_request:
workflow_dispatch:
inputs:
head_ref:
description: 'HEAD git reference (tag/branch/commit) to analyze'
required: true
default: 'main'
type: string
base_ref:
description: 'Base git reference (tag/branch/commit) to compare against head_ref'
required: true
default: 'main'
type: string
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- name: "Dependency Review"
uses: actions/dependency-review-action@v4
with:
base-ref: ${{ inputs.base_ref || github.event.pull_request.base.sha || 'main' }}
head-ref: ${{ inputs.head_ref || github.event.pull_request.head.sha || github.ref }}
govulncheck:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: ${{ env.GO_VERSION }}
go-version-file: go.mod
25 changes: 25 additions & 0 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: tag-release

on:
push:
branches:
- main
- 'release-*'
paths:
- version.txt

jobs:
tag-release:
if: ${{ github.repository == 'kubernetes-sigs/aws-load-balancer-controller' }}
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: /usr/bin/git config --global user.email [email protected]
- run: /usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
- run: hack/tag-release.sh
23 changes: 16 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
name: Unit Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
- push
- pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: ${{ env.GO_VERSION }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Run unit tests
run: |
sudo snap install yq
make test

- name: Codecov
uses: codecov/codecov-action@v1
with:
file: ./cover.out # optional

verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: make quick-ci
run: |
make quick-ci
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ site
*.swp
*.swo
*~
*.bak
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.22.5
13 changes: 13 additions & 0 deletions .ko.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
defaultBaseImage: public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2024-04-01-1711929684.2
builds:
- env:
- CGO_ENABLED=0
flags:
- -mod=readonly
ldflags:
- -s
- -w
- -X sigs.k8s.io/aws-load-balancer-controller/pkg/version.GitVersion={{.Env.GIT_VERSION}}
- -X sigs.k8s.io/aws-load-balancer-controller/pkg/version.GitCommit={{.Env.GIT_COMMIT}}
- -X sigs.k8s.io/aws-load-balancer-controller/pkg/version.BuildDate={{.Env.BUILD_DATE}}

10 changes: 8 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ _As contributors and maintainers of this project, and in the interest of fosteri
## Getting Started

### Building the project
[Controller developement documentation](/docs/controller-devel.md) has instructions on how to build the project and project specific expectations.
[Controller development documentation](/docs/controller-devel.md) has instructions on how to build the project and project specific expectations.

### Contributing to docs

The [documentation](https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/) is generated using [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/). In order to generate and preview docs locally, use the steps below -

- Install [pipenv](https://pipenv.pypa.io/en/latest/install/#installing-pipenv)
- run `make docs-preview`. This will generate and serve docs locally at http://127.0.0.1:8000

### Contributing
We also have more documentation on how to get started contributing here:
Expand All @@ -23,5 +29,5 @@ We also have more documentation on how to get started contributing here:

## Contact Information

- [Slack channel](https://kubernetes.slack.com/messages/sig-aws)
- [Slack channel](https://kubernetes.slack.com/messages/provider-aws)
- [Mailing list](https://groups.google.com/forum/#!forum/kubernetes-sig-aws)
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# syntax=docker/dockerfile:experimental
ARG BASE_IMAGE
ARG BUILD_IMAGE

FROM --platform=${TARGETPLATFORM} public.ecr.aws/docker/library/golang:1.18.6 AS base
FROM --platform=${TARGETPLATFORM} $BUILD_IMAGE AS base
WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
Expand All @@ -24,7 +26,7 @@ RUN --mount=type=bind,target=. \
CGO_LDFLAGS="-Wl,-z,relro,-z,now" \
go build -buildmode=pie -tags 'osusergo,netgo,static_build' -ldflags="-s -w -linkmode=external -extldflags '-static-pie' -X ${VERSION_PKG}.GitVersion=${GIT_VERSION} -X ${VERSION_PKG}.GitCommit=${GIT_COMMIT} -X ${VERSION_PKG}.BuildDate=${BUILD_DATE}" -mod=readonly -a -o /out/controller main.go

FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2022-07-27-1658910674.2 as bin-unix
FROM $BASE_IMAGE as bin-unix

COPY --from=build /out/controller /controller
ENTRYPOINT ["/controller"]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.18-openshift-4.12 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.22-openshift-4.17 AS builder

WORKDIR /opt/app-root/src

Expand Down
80 changes: 72 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
MAKEFILE_PATH = $(dir $(realpath -s $(firstword $(MAKEFILE_LIST))))

# Image URL to use all building/pushing image targets
IMG ?= amazon/aws-alb-ingress-controller:v2.4.4
IMG ?= public.ecr.aws/eks/aws-load-balancer-controller:v2.8.2
# Image URL to use for builder stage in Docker build
GOLANG_VERSION ?= $(shell cat .go-version)
BUILD_IMAGE ?= public.ecr.aws/docker/library/golang:$(GOLANG_VERSION)
# Image URL to use for base layer in Docker build
BASE_IMAGE ?= public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2024-04-01-1711929684.2
IMG_PLATFORM ?= linux/amd64,linux/arm64
# ECR doesn't appear to support SPDX SBOM
IMG_SBOM ?= none


CRD_OPTIONS ?= "crd:crdVersions=v1"

Expand All @@ -16,6 +25,9 @@ else
GOBIN=$(shell go env GOBIN)
endif

export GOSUMDB = sum.golang.org
export GOTOOLCHAIN = go$(GOLANG_VERSION)

all: controller

# Run tests
Expand Down Expand Up @@ -64,8 +76,10 @@ helm-lint:
${MAKEFILE_PATH}/test/helm/helm-lint.sh

# Generate code
generate: aws-sdk-model-override controller-gen
.PHONY: generate
generate: aws-sdk-model-override controller-gen mockgen
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
MOCKGEN=$(MOCKGEN) ./scripts/gen_mocks.sh

aws-sdk-model-override:
@if [ "$(AWS_SDK_MODEL_OVERRIDE)" = "y" ] ; then \
Expand All @@ -74,13 +88,25 @@ aws-sdk-model-override:
./scripts/aws_sdk_model_override/cleanup.sh ; \
fi

.PHONY: docker-push
docker-push: aws-load-balancer-controller-push

# Push the docker image
docker-push:
.PHONY: aws-load-balancer-controller-push
aws-load-balancer-controller-push: ko
KO_DOCKER_REPO=$(firstword $(subst :, ,${IMG})) \
GIT_VERSION=$(shell git describe --tags --dirty --always) \
GIT_COMMIT=$(shell git rev-parse HEAD) \
BUILD_DATE=$(shell date +%Y-%m-%dT%H:%M:%S%z) \
ko build --tags $(word 2,$(subst :, ,${IMG})) --platform=${IMG_PLATFORM} --bare --sbom ${IMG_SBOM} .

# Push the docker image using docker buildx
docker-push-w-buildx:
docker buildx build . --target bin \
--tag $(IMG) \
--push \
--platform linux/amd64,linux/arm64
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
--build-arg BUILD_IMAGE=$(BUILD_IMAGE) \
--push \
--platform ${IMG_PLATFORM}

# find or download controller-gen
# download controller-gen if necessary
Expand All @@ -91,14 +117,32 @@ ifeq (, $(shell which controller-gen))
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
cd $$CONTROLLER_GEN_TMP_DIR ;\
go mod init tmp ;\
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.5.0 ;\
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0 ;\
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
}
CONTROLLER_GEN=$(GOBIN)/controller-gen
else
CONTROLLER_GEN=$(shell which controller-gen)
endif

# find or download mockgen
# download mockgen if necessary
.PHONY: mockgen
mockgen:
ifeq (, $(shell which mockgen))
@{ \
set -e ;\
MOCKGEN_TMP_DIR=$$(mktemp -d) ;\
cd $$MOCKGEN_TMP_DIR ;\
go mod init tmp ;\
go install github.com/golang/mock/[email protected] ;\
rm -rf $$MOCKGEN_TMP_DIR ;\
}
MOCKGEN=$(GOBIN)/mockgen
else
MOCKGEN=$(shell which mockgen)
endif

# install kustomize if not found
kustomize:
ifeq (, $(shell which kustomize))
Expand All @@ -115,13 +159,17 @@ else
KUSTOMIZE=$(shell which kustomize)
endif

.PHONY: ko
ko:
hack/install-ko.sh

# preview docs
docs-preview: docs-dependencies
pipenv run mkdocs serve

# publish the versioned docs using mkdocs mike util
docs-publish: docs-dependencies
pipenv run mike deploy v2.4 latest -p --update-aliases
pipenv run mike deploy v2.8 latest -p --update-aliases

# install dependencies needed to preview and publish docs
docs-dependencies:
Expand All @@ -130,6 +178,22 @@ docs-dependencies:
lint:
echo "TODO"

.PHONY: quick-ci
quick-ci: verify-versions verify-generate verify-crds
echo "Done!"

.PHONY: verify-generate
verify-generate:
hack/verify-generate.sh

.PHONY: verify-crds
verify-crds:
hack/verify-crds.sh

.PHONY: verify-versions
verify-versions:
hack/verify-versions.sh

unit-test:
./scripts/ci_unit_test.sh

Expand Down
Loading