Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 19 additions & 18 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestPrune(t *testing.T) {
flavorVersion: strconv.Itoa(0),
},
{
version: "1.11.3",
version: "1.12.4",
flavor: "tetrate",
flavorVersion: strconv.Itoa(0),
},
Expand Down Expand Up @@ -211,7 +211,7 @@ func TestShow(t *testing.T) {
flavorVersion: strconv.Itoa(0),
},
{
version: "1.11.3",
version: "1.12.4",
flavor: "tetrate",
flavorVersion: strconv.Itoa(0),
},
Expand All @@ -226,7 +226,7 @@ func TestShow(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
exp := `1.11.3-tetrate-v0 (Active)
exp := `1.12.4-tetrate-v0 (Active)
1.7.8-tetrate-v0
1.8.6-tetrate-v0`
require.Contains(t, buf.String(), exp)
Expand All @@ -248,7 +248,7 @@ func TestSwitch(t *testing.T) {
flavorVersion: strconv.Itoa(0),
},
{
version: "1.11.3",
version: "1.12.4",
flavor: "tetrate",
flavorVersion: strconv.Itoa(0),
},
Expand All @@ -259,7 +259,7 @@ func TestSwitch(t *testing.T) {
}

t.Run("full", func(t *testing.T) {
for _, v := range []string{"1.8.6", "1.11.3"} {
for _, v := range []string{"1.8.6", "1.12.4"} {
{
cmd := exec.Command("./getmesh", "switch",
"--version", v, "--flavor", "tetrate", "--flavor-version=0",
Expand Down Expand Up @@ -294,7 +294,7 @@ func TestSwitch(t *testing.T) {
require.Contains(t, buf.String(), "1.8.6-tetrate-v0")

cmd = exec.Command("./getmesh", "switch",
"--name", "1.11.3-tetrate-v0",
"--name", "1.12.4-tetrate-v0",
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand All @@ -305,11 +305,11 @@ func TestSwitch(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
require.Contains(t, buf.String(), "1.11.3-tetrate-v0")
require.Contains(t, buf.String(), "1.12.4-tetrate-v0")
})
t.Run("active", func(t *testing.T) {
cmd := exec.Command("./getmesh", "fetch",
"--version=1.11.3", "--flavor=istio", "--flavor-version=0",
"--version=1.12.4", "--flavor=istio", "--flavor-version=0",
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand All @@ -320,8 +320,8 @@ func TestSwitch(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
require.Contains(t, buf.String(), "1.11.3")
require.NotContains(t, buf.String(), "1.11.3-tetrate-v0")
require.Contains(t, buf.String(), "1.12.4")
require.NotContains(t, buf.String(), "1.12.4-tetrate-v0")

cmd = exec.Command("./getmesh", "switch",
"--flavor=tetrate",
Expand All @@ -335,7 +335,7 @@ func TestSwitch(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
require.Contains(t, buf.String(), "1.11.3-tetrate-v0")
require.Contains(t, buf.String(), "1.12.4-tetrate-v0")
})
}

Expand Down Expand Up @@ -420,7 +420,7 @@ func checkUpgrade(t *testing.T) {
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run(), buf.String())
actual := buf.String()
require.Contains(t, actual, "1.11.6-tetrate-v0 is the latest version in 1.11-tetrate")
require.Contains(t, actual, "1.12.4-tetrate-v0 is the latest version in 1.12-tetrate")

// change image to 1.8.1-tetrate-v0
image := "containers.istio.tetratelabs.com/pilot:1.8.1-tetrate-v0"
Expand Down Expand Up @@ -459,7 +459,7 @@ func configValidate(t *testing.T) {
cmd.Stderr = os.Stderr
require.Error(t, cmd.Run())
exps := []string{
`IST0101`, `Referenced selector not found: "app=nonexisting"`,
// `IST0101`, `Referenced selector not found: "app=nonexisting"`,
`KIA0505`, `Destination Rule disabling namespace-wide mTLS is missing`,
`KIA1102`, `VirtualService is pointing to a non-existent gateway`,
}
Expand Down Expand Up @@ -510,7 +510,7 @@ func configValidate(t *testing.T) {
require.Error(t, cmd.Run())

exps := []string{
`IST0101`, `Referenced selector not found: "app=nonexisting"`,
// `IST0101`, `Referenced selector not found: "app=nonexisting"`,
`KIA0505`, `Destination Rule disabling namespace-wide mTLS is missing`,
`KIA1102`, `VirtualService is pointing to a non-existent gateway`,
}
Expand Down Expand Up @@ -547,8 +547,9 @@ func configValidate(t *testing.T) {
require.Error(t, cmd.Run())

exps := []string{
`IST0101`, `ratings-bogus-weight-default`,
`[e2e/testdata/config-validate-local.yaml:29] Referenced host+subset in destinationrule not found: "ratings+v1`,
// `IST0101`,
`ratings-bogus-weight-default`,
// `[e2e/testdata/config-validate-local.yaml:29] Referenced host+subset in destinationrule not found: "ratings+v1`,
`KIA1104`, `[e2e/testdata/config-validate-local.yaml] The weight is assumed to be 100 because there is only one route destination`,
}
out := bufOut.String()
Expand All @@ -570,8 +571,8 @@ func configValidate(t *testing.T) {
require.Error(t, cmd.Run())

exps := []string{
`IST0108`,
`[e2e/testdata/config-validate-local/config-validate-local.yaml:1] Unknown annotation: networking.istio.io/non-exist`,
`KIA1101`,
// `[e2e/testdata/config-validate-local/config-validate-local.yaml:1] Unknown annotation: networking.istio.io/non-exist`,
}
out := bufOut.String()
for _, exp := range exps {
Expand Down
46 changes: 46 additions & 0 deletions site/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"istio_minor_versions_eol_dates": {
"1.12": "2022-11-18",
"1.11": "2022-10-11",
"1.10": "2022-07-17",
"1.9": "2022-04-08",
Expand All @@ -8,6 +9,51 @@
"1.6": "2020-11-21"
},
"istio_distributions": [
{
"version": "1.12.4",
"flavor": "tetrate",
"flavor_version": 0,
"k8s_versions": [
"1.19",
"1.20",
"1.21",
"1.22"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.12.x/announcing-1.12.4/"
],
"is_security_patch": false
},
{
"version": "1.12.4",
"flavor": "tetratefips",
"flavor_version": 0,
"k8s_versions": [
"1.19",
"1.20",
"1.21",
"1.22"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.12.x/announcing-1.12.4/"
],
"is_security_patch": false
},
{
"version": "1.12.4",
"flavor": "istio",
"flavor_version": 0,
"k8s_versions": [
"1.19",
"1.20",
"1.21",
"1.22"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.12.x/announcing-1.12.4/"
],
"is_security_patch": false
},
{
"version": "1.11.6",
"flavor": "tetrate",
Expand Down