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

Backport of FLAKEY_TEST: Add retry to outbound request for ProxyLifecycleShutdown… into release/1.4.x #4007

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
f694158
Fix meshgw tests (#3532)
jm96441n Feb 1, 2024
b38169a
add nightly for rc branch (#3533)
wilkermichael Feb 1, 2024
ac85721
[NET-7243] Stub APIGateway Controller for v2 (#3507)
jm96441n Feb 1, 2024
25708a1
Net 7376 Status struct on api gateway with required info from kubesig…
sarahalsmiller Feb 1, 2024
1510cef
updated script to point at RC version correctly (#3541)
wilkermichael Feb 2, 2024
78ac000
Mw/prepare main for 1.5 dev (#3535)
wilkermichael Feb 2, 2024
a5221d1
[COMPLIANCE] Add Copyright and License Headers (#3499)
hashicorp-copywrite[bot] Feb 5, 2024
13caead
Net 7279 consul k8s write failing acceptance test for tcp route (#3540)
sarahalsmiller Feb 5, 2024
59d524d
Add json tags to api-gateway types (#3550)
NiniOak Feb 5, 2024
59e7eae
reconcile consul-k8s with changes made in Consul (#3543)
NiniOak Feb 5, 2024
7cd2605
[NET-7656] Add GatewayClassConfig watch for MeshGateway controller (#…
nathancoleman Feb 6, 2024
a03b9d5
Ensure signals are passed to commands (#3548)
lkysow Feb 6, 2024
55ce734
[NET-7158] CRUD hooks for api gateway v2 (#3519)
jm96441n Feb 6, 2024
50226e2
[NET-6465] Respect connectInject.initContainer.resources for v1 API g…
nathancoleman Feb 6, 2024
1001ff4
Add NET_BIND_SERVICE to the security context in the deployment of Mes…
missylbytes Feb 7, 2024
feb3f6e
[NET-7657,NET-6934] Define v2 GatewayClass + GatewayClassConfig local…
nathancoleman Feb 7, 2024
f016fd5
[NET-7156] Gateways Controllers Reusability (#3574)
jm96441n Feb 7, 2024
3a26706
[NET-6465] Consider init container resources when determining if exis…
nathancoleman Feb 7, 2024
0c73a02
[NET-7657] Consume version of proto-public with GatewayClass[Config] …
nathancoleman Feb 7, 2024
fdfb762
Update multicluster v2beta1 to v2 (#3560)
Feb 8, 2024
bf95093
[NET-7156] Generalize MeshGatewayBuilder to just GatewayBuilder (#3538)
jm96441n Feb 8, 2024
74fa2c3
release: Update 10-util.sh to adjust formatting (#3588)
Feb 8, 2024
4600d5d
use go 1.21.7 (#3591)
skpratt Feb 8, 2024
a0a282e
add make target script (#3596)
wilkermichael Feb 9, 2024
411d071
v2tenancy: namespace mirroring acceptance tests (#3590)
analogue Feb 9, 2024
7221281
add linting back (#3603)
wilkermichael Feb 9, 2024
1501856
[COMPLIANCE] Add Copyright and License Headers (#3610)
hashicorp-copywrite[bot] Feb 12, 2024
997f2e8
Datadog Integration (#3407)
natemollica-nm Feb 12, 2024
6879826
Net 7238 - consul k8s modify gateway resources job to create apigw ga…
sarahalsmiller Feb 12, 2024
4cac704
Fix logic on apigateway that ignores current annotations on services …
missylbytes Feb 13, 2024
838d928
[NET-7449] Generalize CRUD hooks for Gateways (#3576)
jm96441n Feb 14, 2024
5c7b345
[NET-5932] chore: remove comment from closed ticket (#3636)
zalimeni Feb 15, 2024
94a0899
[NET-2420] security: Upgrade helm containerd and several other depend…
zalimeni Feb 16, 2024
5ada8b2
build: Create arm64 packages as well (#3428)
dekimsey Feb 16, 2024
442232e
[NET-2420] security: re-enable security scan release block (#3628)
zalimeni Feb 17, 2024
c3e8c03
[NET-8174] security: add scan triage for CVE-2024-25620 (helm/v3) (#3…
zalimeni Feb 20, 2024
75e5fc3
Update main changelog for 1.1.10, 1.2.6 and 1.3.3 (#3662)
curtbushko Feb 20, 2024
eaee0dc
[COMPLIANCE] Add Copyright and License Headers (#3654)
hashicorp-copywrite[bot] Feb 20, 2024
5242c1b
[NET-7450] setup crud hooks for APIGateway v2 (#3580)
jm96441n Feb 20, 2024
6256298
values.yaml - tlsServerName docs (#3656)
Feb 20, 2024
588aa45
[NET-6741] make: Add target for updating dependencies across all modu…
zalimeni Feb 21, 2024
32e2109
build.yml: Add ECR images back (#3668)
Feb 22, 2024
431254a
build.yml: typo on tags (#3681)
Feb 23, 2024
831624f
bump kind to v0.22.0 and update k8s support (#3675)
NicoletaPopoviciu Feb 26, 2024
f3842c4
[NET-8174] security: add scan triage for CVE-2024-26147 (helm/v3) (#3…
zalimeni Feb 26, 2024
f478daf
chore: upgrade Consul dependencies to latest (#3695)
zalimeni Feb 29, 2024
1f8f36c
release: add \n to end of NOTE for releases (#3700)
Feb 29, 2024
b47d104
chore: upgrade `consul/api` to latest (#3702)
zalimeni Feb 29, 2024
da0af7b
[NET-8174] security: add triage alias for GO-2024-2554 (#3705)
zalimeni Feb 29, 2024
b522a6d
docs: update `CHANGELOG` for K8s 1.4.0 release (#3710)
zalimeni Feb 29, 2024
70b9756
docs: update 1.4.0 Helm docs per Docs team feedback (#3714)
zalimeni Mar 5, 2024
406caac
[NET-8367] security: upgrade google.golang.org/protobuf to 1.33.0 (#…
wilkermichael Mar 7, 2024
d14865d
NET-6878: Fix Flake API Gateway Acceptance (#3717)
NiniOak Mar 8, 2024
56adf1d
NET-8391: fix cleanup script (#3725)
NiniOak Mar 8, 2024
fa5cc94
NET-8391: fix cleanup script - remove network interface(s) (#3730)
NiniOak Mar 11, 2024
0718833
updates k8s version (#3731)
NiniOak Mar 11, 2024
15a41a9
fix(control-plane): acl tokens deleted while pods in graceful shutdow…
DanStough Mar 14, 2024
19ca140
NET-6878: Remove finalizers from CRDs during test resource cleanup (#…
NiniOak Mar 14, 2024
0c3a499
Upgrade to go 1.21.8 (#3741)
Mar 14, 2024
411c821
Fix typo in values file for sync catalog test (#3760)
Mar 15, 2024
2780dc2
upgraded helm v3 to address GHSA-jw44-4f3j-q396 (#3768)
wilkermichael Mar 18, 2024
85847ca
Net 6821 - Regenerate Terminating Gateway CRD with new field (#3737)
sarahalsmiller Mar 19, 2024
8ce42ca
Add fixes for flaky-cni and failing cloud-nightly tests (#3764)
NiniOak Mar 19, 2024
5279204
Catalog: Use EndpointSlice and propagate Kubernetes Topology informat…
jukie Mar 19, 2024
b23580b
Increase timeout for running commands in acceptance test (#3784)
NiniOak Mar 20, 2024
838ba6a
Bugfix: Don't recreate servicemap for catalog sync (#3785)
jukie Mar 20, 2024
9006fef
test: fix TestConnectInject_ProxyLifecycleShutdown (#3774)
DanStough Mar 20, 2024
ae0ff85
Removes Legacy API Gateway Stanza that was deprecated in Consul 1.16 …
missylbytes Mar 20, 2024
6464f6b
remove unit test for previously removed `consul-cni` validation (#3794)
tgross Mar 21, 2024
eb3b0c4
[NET-8412] Fix order of APIGW ACL policy/role creation (#3779)
jm96441n Mar 21, 2024
8d86b59
improve reliability of acceptance tests (#3800)
NiniOak Mar 21, 2024
cc5850e
[net-8411] bug: fix premature token and service instance deletion due…
ndhanushkodi Mar 25, 2024
f12a82a
API gateway metrics (#3811)
Mar 26, 2024
422ca89
Add support for Nomad transparent proxy (#3795)
tgross Mar 28, 2024
9393c60
fix version output for `consul-cni` (#3829)
tgross Mar 28, 2024
5ccf1a3
[NET-8601] Upgrade `vault/api` and `docker/docker` to resolve open CV…
zalimeni Mar 29, 2024
8da98ea
Remove anyuid SCC requirement for OpenShift (#3813)
curtbushko Apr 2, 2024
02b8d33
Cleanup formatting to follow consul-k8s standard (#3852)
curtbushko Apr 2, 2024
b609660
Datadog Unix Socket Path Custom Path fix (#3635)
natemollica-nm Apr 3, 2024
8285624
readd dev image tags for fips ubi (#3881)
alvin-huang Apr 4, 2024
fc7a832
[net-7710] don't overwrite prometheus path annotation if it's already…
ndhanushkodi Apr 5, 2024
2405bf6
feat: Add startup-grace-period-seconds and graceful-startup-path (#3878)
ilpianista Apr 9, 2024
1d47b5c
NET-8594: Disable TestSyncCatalog (#3815)
NiniOak Apr 10, 2024
3ddb964
[NET-8946 NET-8947 NET-8948] security: bump go, x/net and envoy versi…
dduzgun-security Apr 11, 2024
e575eb2
NET-8594: Disable TestSyncCatalogIngress (#3904)
NiniOak Apr 12, 2024
8ac97bf
Helm: support sync-lb-services-endpoints for sync catalog (#3905)
zalimeni Apr 12, 2024
a8280cf
Datadog Integration Acceptance Tests / Bug fixes (#3685)
natemollica-nm Apr 19, 2024
6dfbadf
[NET-8412] Fix APIGW policy creation ordering for upgrade path (#3918)
jm96441n Apr 19, 2024
c29effd
Add post-release changelogs (#3867)
Apr 19, 2024
40a7fad
GH-3406 - Only error for config entries from different datacenters wh…
jmurret Apr 19, 2024
de24a3e
add missing license file (#3921)
xwa153 Apr 22, 2024
564d6af
[COMPLIANCE] Add Copyright and License Headers (#3936)
hashicorp-copywrite[bot] Apr 22, 2024
1f92608
Net 9069/xw add license file to all bin (#3942)
xwa153 Apr 22, 2024
94ee36e
[NET-6466] Remove secrets from termgw role (#3928)
jm96441n Apr 22, 2024
7754ea6
Net 9069/fix local brokerage (#3948)
xwa153 Apr 25, 2024
c29da01
[NET-8091] Use file-system-certificate in Consul instead of inline-ce…
nathancoleman Apr 30, 2024
01df038
chore: remove workstream from JIRA sync (#3960)
DanStough May 2, 2024
534e0d3
NET-9154: Update Kubernetes version (#3958)
NiniOak May 2, 2024
263db52
chore: fix JIRA workflow (#3965)
DanStough May 3, 2024
adfa13f
[NET-9097, NET-8174] Upgrade controller-runtime (#3935)
nathancoleman May 3, 2024
d2547f5
Fix a panic in connect-inject when the provided upstreams list is mal…
dhiaayachi May 6, 2024
2cebe95
[NET-9152] CRD for service registeration (#3943)
jm96441n May 7, 2024
58f715a
Add ReadOnlyRootFilesystem to Security Context (#2909)
May 8, 2024
c11c201
activate tproxy mode even when a cluster IP is not assigned to pod (#…
dhiaayachi May 8, 2024
a82ef18
security: Upgrade Go to 1.21.10 (#3980)
dduzgun-security May 9, 2024
69ba66c
NET-9178-Consul-api-gateway-not-starting-after-restart (#3978)
sarahalsmiller May 9, 2024
6db22a7
[NET-9153] Handle Terminating Gateway ACL Setup (#3975)
jm96441n May 13, 2024
7456304
[NET-9201] Validating webhook for registrations (#3990)
jm96441n May 14, 2024
b879937
Updating GitHub action versions to the latest TSCCR approved version …
NicoletaPopoviciu May 15, 2024
5ca164d
test: fix PeeringGateway acceptance (#3992)
DanStough May 16, 2024
2814255
Adds ability to set the imagePullPolicy for all Consul images (consul…
missylbytes May 16, 2024
a7eabc0
[NET-9155] Cache resources for Registrations (#3993)
jm96441n May 16, 2024
b547902
FLAKEY_TEST: Add retry to outbound request for ProxyLifecycleShutdown…
NiniOak May 16, 2024
b7ecab4
increase retry count for TestAPIGateway_GatewayClassConfig test
NiniOak May 16, 2024
1245853
backport of commit b7ecab42443ea54ba634aafe6a65caea815e63f9
NiniOak May 16, 2024
4756755
Merge b7ecab42443ea54ba634aafe6a65caea815e63f9 into backport/fix_flak…
hc-github-team-consul-core May 17, 2024
7bf6ff6
backport of commit 2fcccd23b78bf5684e09f0b1b92a4a4144670963
NiniOak May 16, 2024
6aca63c
Merge branch 'release/1.4.x' into backport/fix_flakey_ProxyLifecycleS…
NiniOak May 21, 2024
b2cc4b4
Merge branch 'release/1.4.x' into backport/fix_flakey_ProxyLifecycleS…
NiniOak May 21, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func TestAPIGateway_GatewayClassConfig(t *testing.T) {
checkConsulExists(t, consulClient, api.APIGateway, gatewayName)

// Scenario: Gateway deployment should match the default instances defined on the gateway class config
logger.Log(t, "checking that gateway instances match defined gateway class config")
// checking that gateway instances match defined gateway class config
checkNumberOfInstances(t, k8sClient, consulClient, gateway.Name, gateway.Namespace, defaultInstances, gateway)

// Scenario: Updating the GatewayClassConfig should not affect gateways that have already been created
Expand Down Expand Up @@ -177,7 +177,7 @@ func scale(t *testing.T, client client.Client, name, namespace string, scaleTo *
func checkNumberOfInstances(t *testing.T, k8client client.Client, consulClient *api.Client, name, namespace string, wantNumber *int32, gateway *gwv1beta1.Gateway) {
t.Helper()

retryCheckWithWait(t, 30, 10*time.Second, func(r *retry.R) {
retryCheckWithWait(t, 40, 10*time.Second, func(r *retry.R) {
logger.Log(t, "checking that gateway instances match defined gateway class config")
logger.Log(t, fmt.Sprintf("want: %d", *wantNumber))

Expand Down
14 changes: 11 additions & 3 deletions acceptance/tests/connect/connect_proxy_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,17 @@ func TestConnectInject_ProxyLifecycleShutdown(t *testing.T) {
case <-gracePeriodTimer.C:
break gracePeriodLoop
default:
output, err := k8s.RunKubectlAndGetOutputE(t, ctx.KubectlOptions(t), args...)
require.NoError(t, err)
require.True(t, !strings.Contains(output, "curl: (7) Failed to connect"))
retrier := &retry.Counter{Count: 3, Wait: 1 * time.Second}
retry.RunWith(retrier, t, func(r *retry.R) {
output, err := k8s.RunKubectlAndGetOutputE(r, ctx.KubectlOptions(t), args...)
if err != nil {
r.Errorf(err.Error())
return
}
require.Condition(r, func() bool {
return !strings.Contains(output, "curl: (7) Failed to connect")
}, fmt.Sprintf("Error: %s", output))
})

// If listener draining is disabled, ensure inbound
// requests are accepted during grace period.
Expand Down
Loading