Skip to content

Commit 576f7c7

Browse files
authored
manifest: add 1.9.7, 1.10.3 (#59)
1 parent 46a6ddc commit 576f7c7

File tree

2 files changed

+119
-25
lines changed

2 files changed

+119
-25
lines changed

e2e/e2e_test.go

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func securityPatchChecker(t *testing.T) {
8585
m := &api.Manifest{
8686
IstioDistributions: []*api.IstioDistribution{
8787
{
88-
Version: "1.9.1000000000000",
88+
Version: "1.10.1000000000000",
8989
Flavor: api.IstioDistributionFlavorTetrate,
9090
FlavorVersion: 0,
9191
IsSecurityPatch: true,
@@ -109,7 +109,7 @@ func securityPatchChecker(t *testing.T) {
109109
cmd.Stderr = os.Stderr
110110
cmd.Env = append(os.Environ(), fmt.Sprintf("GETMESH_TEST_MANIFEST_PATH=%s", f.Name()))
111111
require.NoError(t, cmd.Run())
112-
require.Contains(t, buf.String(), `[WARNING] The locally installed minor version 1.9-tetrate has a latest version 1.9.1000000000000-tetrate-v0 including security patches. We strongly recommend you to download 1.9.1000000000000-tetrate-v0 by "getmesh fetch".`)
112+
require.Contains(t, buf.String(), `[WARNING] The locally installed minor version 1.10-tetrate has a latest version 1.10.1000000000000-tetrate-v0 including security patches. We strongly recommend you to download 1.10.1000000000000-tetrate-v0 by "getmesh fetch".`)
113113
}
114114

115115
func enfOfLife(t *testing.T) {
@@ -133,7 +133,13 @@ func list(t *testing.T) {
133133
require.NoError(t, cmd.Run())
134134

135135
exp := `ISTIO VERSION FLAVOR FLAVOR VERSION K8S VERSIONS
136-
*1.9.5 tetrate 0 1.17,1.18,1.19,1.20
136+
*1.10.3 tetrate 0 1.17,1.18,1.19,1.20
137+
1.10.3 tetratefips 0 1.17,1.18,1.19,1.20
138+
1.10.3 istio 0 1.17,1.18,1.19,1.20
139+
1.9.7 tetrate 0 1.17,1.18,1.19,1.20
140+
1.9.7 tetratefips 0 1.17,1.18,1.19,1.20
141+
1.9.7 istio 0 1.17,1.18,1.19,1.20
142+
1.9.5 tetrate 0 1.17,1.18,1.19,1.20
137143
1.9.5 istio 0 1.17,1.18,1.19,1.20
138144
1.9.4 tetrate 0 1.17,1.18,1.19,1.20
139145
1.9.4 istio 0 1.17,1.18,1.19,1.20
@@ -155,7 +161,7 @@ func list(t *testing.T) {
155161
func fetch(t *testing.T) {
156162
defer func() {
157163
cmd := exec.Command("./getmesh", "switch",
158-
"--version", "1.9.5", "--flavor", "tetrate", "--flavor-version=0",
164+
"--version", "1.10.3", "--flavor", "tetrate", "--flavor-version=0",
159165
)
160166
cmd.Stdout = os.Stdout
161167
cmd.Stderr = os.Stderr
@@ -185,20 +191,20 @@ istioctl switched to 1.8.6-tetrate-v0 now
185191
require.Error(t, cmd.Run())
186192

187193
// fetch without version
188-
cmd = exec.Command("./getmesh", "fetch", "--flavor=istio", "--flavor-version=0")
194+
cmd = exec.Command("./getmesh", "fetch", "--flavor=tetrate", "--flavor-version=0")
189195
buf = new(bytes.Buffer)
190196
cmd.Stdout = buf
191197
cmd.Stderr = os.Stderr
192198
require.NoError(t, cmd.Run())
193-
require.Contains(t, buf.String(), `-istio-v0 now`)
199+
require.Contains(t, buf.String(), `-tetrate-v0 now`)
194200

195201
// fetch with single flavor flag
196-
cmd = exec.Command("./getmesh", "fetch", "--flavor=istio")
202+
cmd = exec.Command("./getmesh", "fetch", "--flavor=tetrate")
197203
buf = new(bytes.Buffer)
198204
cmd.Stdout = buf
199205
cmd.Stderr = os.Stderr
200206
require.NoError(t, cmd.Run())
201-
require.Contains(t, buf.String(), `-istio-v0 now`)
207+
require.Contains(t, buf.String(), `-tetrate-v0 now`)
202208

203209
// fetch another version
204210
cmd = exec.Command("./getmesh", "fetch", "--version=1.7.8")
@@ -219,7 +225,7 @@ func prune(t *testing.T) {
219225
home, err := util.GetmeshHomeDir()
220226
require.NoError(t, err)
221227

222-
// note that this prune test depends on the abovefetch test,
228+
// note that this prune test depends on the above fetch test,
223229
// and we should restore the fetched versions for subsequent tests
224230

225231
t.Run("specific", func(t *testing.T) {
@@ -265,7 +271,7 @@ func prune(t *testing.T) {
265271
FlavorVersion: 0,
266272
},
267273
{
268-
Version: "1.9.5",
274+
Version: "1.10.3",
269275
Flavor: "tetrate",
270276
FlavorVersion: 0,
271277
},
@@ -309,15 +315,15 @@ func show(t *testing.T) {
309315
cmd.Stdout = buf
310316
cmd.Stderr = os.Stderr
311317
require.NoError(t, cmd.Run())
312-
exp := `1.7.8-tetrate-v0
313-
1.8.6-tetrate-v0
314-
1.9.5-tetrate-v0 (Active)`
318+
exp := `1.10.3-tetrate-v0 (Active)
319+
1.7.8-tetrate-v0
320+
1.8.6-tetrate-v0`
315321
require.Contains(t, buf.String(), exp)
316322
}
317323

318324
func switchTest(t *testing.T) {
319325
t.Run("full", func(t *testing.T) {
320-
for _, v := range []string{"1.8.6", "1.9.5"} {
326+
for _, v := range []string{"1.8.6", "1.10.3"} {
321327
{
322328
cmd := exec.Command("./getmesh", "switch",
323329
"--version", v, "--flavor", "tetrate", "--flavor-version=0",
@@ -352,7 +358,7 @@ func switchTest(t *testing.T) {
352358
require.Contains(t, buf.String(), "1.8.6-tetrate-v0")
353359

354360
cmd = exec.Command("./getmesh", "switch",
355-
"--name", "1.9.5-tetrate-v0",
361+
"--name", "1.10.3-tetrate-v0",
356362
)
357363
cmd.Stdout = os.Stdout
358364
cmd.Stderr = os.Stderr
@@ -363,11 +369,11 @@ func switchTest(t *testing.T) {
363369
cmd.Stdout = buf
364370
cmd.Stderr = os.Stderr
365371
require.NoError(t, cmd.Run())
366-
require.Contains(t, buf.String(), "1.9.5-tetrate-v0")
372+
require.Contains(t, buf.String(), "1.10.3-tetrate-v0")
367373
})
368374
t.Run("active", func(t *testing.T) {
369375
cmd := exec.Command("./getmesh", "fetch",
370-
"--version=1.9.5", "--flavor=istio", "--flavor-version=0",
376+
"--version=1.10.3", "--flavor=istio", "--flavor-version=0",
371377
)
372378
cmd.Stdout = os.Stdout
373379
cmd.Stderr = os.Stderr
@@ -378,8 +384,8 @@ func switchTest(t *testing.T) {
378384
cmd.Stdout = buf
379385
cmd.Stderr = os.Stderr
380386
require.NoError(t, cmd.Run())
381-
require.Contains(t, buf.String(), "1.9.5")
382-
require.NotContains(t, buf.String(), "1.9.5-tetrate-v0")
387+
require.Contains(t, buf.String(), "1.10.3")
388+
require.NotContains(t, buf.String(), "1.10.3-tetrate-v0")
383389

384390
cmd = exec.Command("./getmesh", "switch",
385391
"--flavor=tetrate",
@@ -393,7 +399,7 @@ func switchTest(t *testing.T) {
393399
cmd.Stdout = buf
394400
cmd.Stderr = os.Stderr
395401
require.NoError(t, cmd.Run())
396-
require.Contains(t, buf.String(), "1.9.5-tetrate-v0")
402+
require.Contains(t, buf.String(), "1.10.3-tetrate-v0")
397403
})
398404
}
399405

@@ -407,10 +413,7 @@ func istioctlInstall(t *testing.T) {
407413
actual := buf.String()
408414

409415
// istioctl x precheck
410-
require.Contains(t, actual, "Can initialize the Kubernetes client.")
411-
require.Contains(t, actual, "Can query the Kubernetes API Server.")
412-
require.Contains(t, actual, "Istio will be installed in the istio-system namespace.")
413-
require.Contains(t, actual, "Install Pre-Check passed! The cluster is ready for Istio installation.")
416+
require.Contains(t, actual, "No issues found when checking the cluster. Istio is safe to install or upgrade")
414417
}
415418

416419
func unknown(t *testing.T) {
@@ -499,7 +502,7 @@ func checkUpgrade(t *testing.T) {
499502
cmd.Stderr = os.Stderr
500503
require.NoError(t, cmd.Run(), buf.String())
501504
actual := buf.String()
502-
require.Contains(t, actual, "1.9.5-tetrate-v0 is the latest version in 1.9-tetrate")
505+
require.Contains(t, actual, "1.10.3-tetrate-v0 is the latest version in 1.10-tetrate")
503506

504507
// change image to 1.8.1-tetrate-v0
505508
image := "containers.istio.tetratelabs.com/pilot:1.8.1-tetrate-v0"

site/manifest.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,102 @@
11
{
22
"istio_minor_versions_eol_dates": {
3+
"1.10": "2022-07-17",
34
"1.9": "2022-04-08",
45
"1.8": "2022-01-18",
56
"1.7": "2021-10-20",
67
"1.6": "2020-11-21"
78
},
89
"istio_distributions": [
10+
{
11+
"version": "1.10.3",
12+
"flavor": "tetrate",
13+
"flavor_version": 0,
14+
"k8s_versions": [
15+
"1.17",
16+
"1.18",
17+
"1.19",
18+
"1.20"
19+
],
20+
"release_notes": [
21+
"https://istio.io/latest/news/releases/1.10.x/announcing-1.10.3/"
22+
],
23+
"is_security_patch": false
24+
},
25+
{
26+
"version": "1.10.3",
27+
"flavor": "tetratefips",
28+
"flavor_version": 0,
29+
"k8s_versions": [
30+
"1.17",
31+
"1.18",
32+
"1.19",
33+
"1.20"
34+
],
35+
"release_notes": [
36+
"https://istio.io/latest/news/releases/1.10.x/announcing-1.10.3/"
37+
],
38+
"is_security_patch": false
39+
},
40+
{
41+
"version": "1.10.3",
42+
"flavor": "istio",
43+
"flavor_version": 0,
44+
"k8s_versions": [
45+
"1.17",
46+
"1.18",
47+
"1.19",
48+
"1.20"
49+
],
50+
"release_notes": [
51+
"https://istio.io/latest/news/releases/1.10.x/announcing-1.10.3/"
52+
],
53+
"is_security_patch": false
54+
},
55+
{
56+
"version": "1.9.7",
57+
"flavor": "tetrate",
58+
"flavor_version": 0,
59+
"k8s_versions": [
60+
"1.17",
61+
"1.18",
62+
"1.19",
63+
"1.20"
64+
],
65+
"release_notes": [
66+
"https://istio.io/latest/news/releases/1.9.x/announcing-1.9.7/"
67+
],
68+
"is_security_patch": false
69+
},
70+
{
71+
"version": "1.9.7",
72+
"flavor": "tetratefips",
73+
"flavor_version": 0,
74+
"k8s_versions": [
75+
"1.17",
76+
"1.18",
77+
"1.19",
78+
"1.20"
79+
],
80+
"release_notes": [
81+
"https://istio.io/latest/news/releases/1.9.x/announcing-1.9.7/"
82+
],
83+
"is_security_patch": false
84+
},
85+
{
86+
"version": "1.9.7",
87+
"flavor": "istio",
88+
"flavor_version": 0,
89+
"k8s_versions": [
90+
"1.17",
91+
"1.18",
92+
"1.19",
93+
"1.20"
94+
],
95+
"release_notes": [
96+
"https://istio.io/latest/news/releases/1.9.x/announcing-1.9.7/"
97+
],
98+
"is_security_patch": false
99+
},
9100
{
10101
"version": "1.9.5",
11102
"flavor": "tetrate",

0 commit comments

Comments
 (0)