File tree Expand file tree Collapse file tree 4 files changed +17
-21
lines changed
src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/config/envoy Expand file tree Collapse file tree 4 files changed +17
-21
lines changed Original file line number Diff line number Diff line change 48
48
restore-keys : |
49
49
${{ runner.os }}-gradle-
50
50
51
- - name : Test with Gradle
51
+ - name : Test with Gradle (envoyVersion=${{ inputs.envoyVersion }})
52
52
run : ./gradlew clean check -PenvoyVersion=${{ inputs.envoyVersion }}
53
53
54
54
- name : Junit report
Original file line number Diff line number Diff line change 3
3
Lists all changes with user impact.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ ) .
5
5
6
+ ## [ 0.19.31]
7
+
8
+ ### Changed
9
+ - move min & max envoy versions inside artifact to be accessible for dependant projects
10
+
6
11
## [ 0.19.30]
7
12
8
13
### Changed
Original file line number Diff line number Diff line change 1
- def MIN_SUPPORTED_ENVOY_VERSION = " v1.22.7"
2
- def MAX_SUPPORTED_ENVOY_VERSION = " v1.24.0"
3
-
4
1
dependencies {
5
2
implementation project(' :envoy-control-runner' )
6
3
@@ -22,19 +19,6 @@ dependencies {
22
19
implementation group : ' org.testcontainers' , name : ' testcontainers' , version : versions. testcontainers
23
20
}
24
21
25
- String envoyVersion = { ->
26
- String versionArg = project. findProperty(" envoyVersion" ) ?: " max"
27
- if (versionArg == " max" ) {
28
- return MAX_SUPPORTED_ENVOY_VERSION
29
- } else if (versionArg == " min" ) {
30
- return MIN_SUPPORTED_ENVOY_VERSION
31
- } else {
32
- return versionArg
33
- }
34
- }()
35
-
36
- println (" Using envoy version: $envoyVersion " )
37
-
38
22
test {
39
23
useJUnitPlatform {
40
24
excludeTags ' reliability'
@@ -57,6 +41,5 @@ task reliabilityTest(type: Test) {
57
41
}
58
42
59
43
tasks. withType(Test ). configureEach {
60
- systemProperty(" pl.allegro.tech.servicemesh.envoyVersion" , envoyVersion)
44
+ project . findProperty( " envoyVersion " ) ?. with { systemProperty(" pl.allegro.tech.servicemesh.envoyVersion" , it) }
61
45
}
62
-
Original file line number Diff line number Diff line change @@ -38,9 +38,17 @@ class EnvoyContainer(
38
38
const val INGRESS_LISTENER_CONTAINER_PORT = 5001
39
39
private const val ADMIN_PORT = 10000
40
40
41
+ private const val MIN_SUPPORTED_ENVOY_VERSION = " v1.22.7"
42
+ private const val MAX_SUPPORTED_ENVOY_VERSION = " v1.24.0"
43
+
41
44
val DEFAULT_IMAGE = run {
42
- val key = " pl.allegro.tech.servicemesh.envoyVersion"
43
- val version = System .getProperty(key) ? : throw IllegalStateException (" Missing '$key ' system property" )
45
+ val version =
46
+ when (val versionArg = System .getProperty(" pl.allegro.tech.servicemesh.envoyVersion" ).orEmpty()) {
47
+ " max" , " " -> MAX_SUPPORTED_ENVOY_VERSION
48
+ " min" -> MIN_SUPPORTED_ENVOY_VERSION
49
+ else -> versionArg
50
+ }
51
+ logger.info(" Using envoy version: $version " )
44
52
" envoyproxy/envoy:$version "
45
53
}
46
54
}
You can’t perform that action at this time.
0 commit comments