Skip to content

Commit a2c50d3

Browse files
authored
connect: add support for envoy 1.16.0, drop support for 1.12.x, and bump point releases as well (hashicorp#8944)
Supported versions will be: "1.16.0", "1.15.2", "1.14.5", "1.13.6"
1 parent 8ffebeb commit a2c50d3

File tree

191 files changed

+54
-73
lines changed

Some content is hidden

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

191 files changed

+54
-73
lines changed

.circleci/config.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -739,13 +739,13 @@ jobs:
739739
command: bash <(curl -s https://codecov.io/bash) -v -c -C $CIRCLE_SHA1 -F ui
740740
- run: *notify-slack-failure
741741

742-
envoy-integration-test-1.12.6:
742+
envoy-integration-test-1.13.6:
743743
docker:
744744
# We only really need bash and docker-compose which is installed on all
745745
# Circle images but pick Go since we have to pick one of them.
746746
- image: *GOLANG_IMAGE
747747
environment:
748-
ENVOY_VERSION: "1.12.6"
748+
ENVOY_VERSION: "1.13.6"
749749
steps: &ENVOY_INTEGRATION_TEST_STEPS
750750
- checkout
751751
# Get go binary from workspace
@@ -774,25 +774,25 @@ jobs:
774774
path: *TEST_RESULTS_DIR
775775
- run: *notify-slack-failure
776776

777-
envoy-integration-test-1.13.4:
777+
envoy-integration-test-1.14.5:
778778
docker:
779779
- image: *GOLANG_IMAGE
780780
environment:
781-
ENVOY_VERSION: "1.13.4"
781+
ENVOY_VERSION: "1.14.5"
782782
steps: *ENVOY_INTEGRATION_TEST_STEPS
783783

784-
envoy-integration-test-1.14.4:
784+
envoy-integration-test-1.15.2:
785785
docker:
786786
- image: *GOLANG_IMAGE
787787
environment:
788-
ENVOY_VERSION: "1.14.4"
788+
ENVOY_VERSION: "1.15.2"
789789
steps: *ENVOY_INTEGRATION_TEST_STEPS
790790

791-
envoy-integration-test-1.15.0:
791+
envoy-integration-test-1.16.0:
792792
docker:
793793
- image: *GOLANG_IMAGE
794794
environment:
795-
ENVOY_VERSION: "1.15.0"
795+
ENVOY_VERSION: "1.16.0"
796796
steps: *ENVOY_INTEGRATION_TEST_STEPS
797797

798798
# run integration tests for the connect ca providers
@@ -929,16 +929,16 @@ workflows:
929929
- nomad-integration-0_8:
930930
requires:
931931
- dev-build
932-
- envoy-integration-test-1.12.6:
932+
- envoy-integration-test-1.13.6:
933933
requires:
934934
- dev-build
935-
- envoy-integration-test-1.13.4:
935+
- envoy-integration-test-1.14.5:
936936
requires:
937937
- dev-build
938-
- envoy-integration-test-1.14.4:
938+
- envoy-integration-test-1.15.2:
939939
requires:
940940
- dev-build
941-
- envoy-integration-test-1.15.0:
941+
- envoy-integration-test-1.16.0:
942942
requires:
943943
- dev-build
944944
website:

agent/xds/envoy_versioning.go

+1-16
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,9 @@ import (
1111
var (
1212
// minSupportedVersion is the oldest mainline version we support. This should always be
1313
// the zero'th point release of the last element of proxysupport.EnvoyVersions.
14-
minSupportedVersion = version.Must(version.NewVersion("1.12.0"))
14+
minSupportedVersion = version.Must(version.NewVersion("1.13.0"))
1515

1616
specificUnsupportedVersions = []unsupportedVersion{
17-
{
18-
Version: version.Must(version.NewVersion("1.12.0")),
19-
UpgradeTo: "1.12.3+",
20-
Why: "does not support RBAC rules using url_path",
21-
},
22-
{
23-
Version: version.Must(version.NewVersion("1.12.1")),
24-
UpgradeTo: "1.12.3+",
25-
Why: "does not support RBAC rules using url_path",
26-
},
27-
{
28-
Version: version.Must(version.NewVersion("1.12.2")),
29-
UpgradeTo: "1.12.3+",
30-
Why: "does not support RBAC rules using url_path",
31-
},
3217
{
3318
Version: version.Must(version.NewVersion("1.13.0")),
3419
UpgradeTo: "1.13.1+",

agent/xds/envoy_versioning_test.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func TestDetermineEnvoyVersionFromNode(t *testing.T) {
7272

7373
func TestDetermineSupportedProxyFeaturesFromString(t *testing.T) {
7474
const (
75-
err1_12 = "is too old of a point release and is not supported by Consul because it does not support RBAC rules using url_path. Please upgrade to version 1.12.3+."
7675
err1_13 = "is too old of a point release and is not supported by Consul because it does not support RBAC rules using url_path. Please upgrade to version 1.13.1+."
7776
errTooOld = "is too old and is not supported by Consul"
7877
)
@@ -87,18 +86,22 @@ func TestDetermineSupportedProxyFeaturesFromString(t *testing.T) {
8786
"1.9.0": {expectErr: "Envoy 1.9.0 " + errTooOld},
8887
"1.10.0": {expectErr: "Envoy 1.10.0 " + errTooOld},
8988
"1.11.0": {expectErr: "Envoy 1.11.0 " + errTooOld},
90-
"1.12.0": {expectErr: "Envoy 1.12.0 " + err1_12},
91-
"1.12.1": {expectErr: "Envoy 1.12.1 " + err1_12},
92-
"1.12.2": {expectErr: "Envoy 1.12.2 " + err1_12},
89+
"1.12.0": {expectErr: "Envoy 1.12.0 " + errTooOld},
90+
"1.12.1": {expectErr: "Envoy 1.12.1 " + errTooOld},
91+
"1.12.2": {expectErr: "Envoy 1.12.2 " + errTooOld},
92+
"1.12.3": {expectErr: "Envoy 1.12.3 " + errTooOld},
93+
"1.12.4": {expectErr: "Envoy 1.12.4 " + errTooOld},
94+
"1.12.5": {expectErr: "Envoy 1.12.5 " + errTooOld},
95+
"1.12.6": {expectErr: "Envoy 1.12.6 " + errTooOld},
96+
"1.12.7": {expectErr: "Envoy 1.12.7 " + errTooOld},
9397
"1.13.0": {expectErr: "Envoy 1.13.0 " + err1_13},
9498
}
9599

96100
// Insert a bunch of valid versions.
97101
for _, v := range []string{
98-
"1.12.3", "1.12.4", "1.12.5", "1.12.6", "1.12.7",
99102
"1.13.1", "1.13.2", "1.13.3", "1.13.4", "1.13.6", "1.14.1",
100103
"1.14.2", "1.14.3", "1.14.4", "1.14.5",
101-
"1.15.0", "1.15.1", "1.15.2",
104+
"1.15.0", "1.15.1", "1.15.2", "1.16.0",
102105
} {
103106
cases[v] = testcase{expect: supportedProxyFeatures{}}
104107
}

agent/xds/proxysupport/proxysupport.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package proxysupport
77
//
88
// see: https://www.consul.io/docs/connect/proxies/envoy#supported-versions
99
var EnvoyVersions = []string{
10-
"1.15.0",
11-
"1.14.4",
12-
"1.13.4",
13-
"1.12.6",
10+
"1.16.0",
11+
"1.15.2",
12+
"1.14.5",
13+
"1.13.6",
1414
}

command/connect/envoy/testdata/CONSUL_HTTP_ADDR-with-https-scheme-enables-tls.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/access-log-path.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/defaults.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/existing-ca-file.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/existing-ca-path.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/extra_-multiple.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/extra_-single.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/grpc-addr-config.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/grpc-addr-env.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/grpc-addr-flag.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/grpc-addr-unix.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/ingress-gateway-address-specified.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "ingress-gateway",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/ingress-gateway-no-auto-register.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "ingress-gateway",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/ingress-gateway-register-with-service-and-proxy-id.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "my-gateway-123",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/ingress-gateway-register-with-service-without-proxy-id.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "my-gateway",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/ingress-gateway.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "ingress-gateway-1",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/stats-config-override.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/token-arg.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/token-env.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/token-file-arg.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/token-file-env.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

command/connect/envoy/testdata/zipkin-tracing-config.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"id": "test-proxy",
1414
"metadata": {
1515
"namespace": "default",
16-
"envoy_version": "1.15.0"
16+
"envoy_version": "1.16.0"
1717
}
1818
},
1919
"static_resources": {

test/integration/connect/envoy/run-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readonly self_name="$0"
88
DEBUG=${DEBUG:-}
99

1010
# ENVOY_VERSION to run each test against
11-
ENVOY_VERSION=${ENVOY_VERSION:-"1.15.0"}
11+
ENVOY_VERSION=${ENVOY_VERSION:-"1.16.0"}
1212
export ENVOY_VERSION
1313

1414
if [ ! -z "$DEBUG" ] ; then

test/integration/connect/envoy/test-envoy-versions.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,12 @@ unset CDPATH
77
cd "$(dirname "$0")"
88

99
## no rbac url_path support
10-
# 1.12.0
11-
# 1.12.1
12-
# 1.12.2
1310
# 1.13.0
1411

1512
## does not exist in docker
1613
# 1.13.5
1714
# 1.14.0
1815
versions=(
19-
1.12.3
20-
1.12.4
21-
1.12.5
22-
1.12.6
23-
1.12.7
2416
1.13.1
2517
1.13.2
2618
1.13.3
@@ -34,6 +26,7 @@ versions=(
3426
1.15.0
3527
1.15.1
3628
1.15.2
29+
1.16.0
3730
)
3831

3932
for v in "${versions[@]}"; do

website/pages/commands/connect/envoy.mdx

+1-1

0 commit comments

Comments
 (0)