Skip to content

Commit

Permalink
Added istio releases 1.7.8, 1.8.4, 1.9.1 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
deva26 authored Mar 23, 2021
1 parent dee024a commit 019f6f8
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 15 deletions.
2 changes: 1 addition & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# originally copied from https://wasmtime.dev/install.sh with some modifications

GETISTIO_LATEST_VERSION="1.0.4"
GETISTIO_LATEST_VERSION="1.0.5"

if [[ -z "${GETISTIO_VERSION}" ]]; then
VERSION="${GETISTIO_LATEST_VERSION}"
Expand Down
34 changes: 20 additions & 14 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func update(t *testing.T) {
cmd.Env = env
require.NoError(t, cmd.Run(), buf.String())
actual := buf.String()
assert.Contains(t, actual, "getistio successfully updated from dev to 1.0.4!")
assert.Contains(t, actual, "getistio successfully updated from dev to 1.0.5!")
t.Log(actual)
}

Expand Down Expand Up @@ -202,15 +202,21 @@ func list(t *testing.T) {
require.NoError(t, cmd.Run())

exp := `ISTIO VERSION FLAVOR FLAVOR VERSION K8S VERSIONS
*1.9.0 tetrate 0 1.17,1.18,1.19,1.20
*1.9.1 tetrate 0 1.17,1.18,1.19,1.20
1.9.1 istio 0 1.17,1.18,1.19,1.20
1.9.0 tetrate 0 1.17,1.18,1.19,1.20
1.9.0 tetratefips 1 1.17,1.18,1.19,1.20
1.9.0 istio 0 1.17,1.18,1.19,1.20
1.8.4 tetrate 0 1.16,1.17,1.18,1.19
1.8.4 istio 0 1.16,1.17,1.18,1.19
1.8.3 tetrate 0 1.16,1.17,1.18,1.19
1.8.3 tetratefips 1 1.16,1.17,1.18,1.19
1.8.3 istio 0 1.16,1.17,1.18,1.19
1.8.2 tetrate 0 1.16,1.17,1.18
1.8.1 tetrate 0 1.16,1.17,1.18
1.8.0 tetrate 0 1.16,1.17,1.18
1.7.8 tetrate 0 1.16,1.17,1.18
1.7.8 istio 0 1.16,1.17,1.18
1.7.7 tetrate 0 1.16,1.17,1.18
1.7.6 tetrate 0 1.16,1.17,1.18
1.7.5 tetrate 0 1.16,1.17,1.18
Expand All @@ -222,7 +228,7 @@ func list(t *testing.T) {
func fetch(t *testing.T) {
defer func() {
cmd := exec.Command("./getistio", "switch",
"--version", "1.9.0", "--flavor", "tetrate", "--flavor-version=0",
"--version", "1.9.1", "--flavor", "tetrate", "--flavor-version=0",
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down Expand Up @@ -333,7 +339,7 @@ func prune(t *testing.T) {
FlavorVersion: 0,
},
{
Version: "1.9.0",
Version: "1.9.1",
Flavor: "tetrate",
FlavorVersion: 0,
},
Expand Down Expand Up @@ -379,14 +385,14 @@ func show(t *testing.T) {
require.NoError(t, cmd.Run())
exp := `1.7.5-tetrate-v0
1.8.1-tetrate-v0
1.9.0-tetrate-v0 (Active)`
1.9.1-tetrate-v0 (Active)`
assert.Contains(t, buf.String(), exp)
fmt.Println(buf.String())
}

func switchTest(t *testing.T) {
t.Run("full", func(t *testing.T) {
for _, v := range []string{"1.8.1", "1.9.0"} {
for _, v := range []string{"1.8.1", "1.9.1"} {
{
cmd := exec.Command("./getistio", "switch",
"--version", v, "--flavor", "tetrate", "--flavor-version=0",
Expand Down Expand Up @@ -422,7 +428,7 @@ func switchTest(t *testing.T) {
assert.Contains(t, buf.String(), "1.8.1-tetrate-v0")

cmd = exec.Command("./getistio", "switch",
"--name", "1.9.0-tetrate-v0",
"--name", "1.9.1-tetrate-v0",
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand All @@ -433,12 +439,12 @@ func switchTest(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
assert.Contains(t, buf.String(), "1.9.0-tetrate-v0")
assert.Contains(t, buf.String(), "1.9.1-tetrate-v0")
fmt.Println(buf.String())
})
t.Run("active", func(t *testing.T) {
cmd := exec.Command("./getistio", "fetch",
"--version=1.9.0", "--flavor=istio", "--flavor-version=0",
"--version=1.9.1", "--flavor=istio", "--flavor-version=0",
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand All @@ -449,8 +455,8 @@ func switchTest(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
assert.Contains(t, buf.String(), "1.9.0")
assert.NotContains(t, buf.String(), "1.9.0-tetrate-v0")
assert.Contains(t, buf.String(), "1.9.1")
assert.NotContains(t, buf.String(), "1.9.1-tetrate-v0")

cmd = exec.Command("./getistio", "switch",
"--flavor=tetrate",
Expand All @@ -464,7 +470,7 @@ func switchTest(t *testing.T) {
cmd.Stdout = buf
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run())
assert.Contains(t, buf.String(), "1.9.0-tetrate-v0")
assert.Contains(t, buf.String(), "1.9.1-tetrate-v0")
fmt.Println(buf.String())
})
}
Expand Down Expand Up @@ -577,7 +583,7 @@ func checkUpgrade(t *testing.T) {
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Run(), buf.String())
actual := buf.String()
assert.Contains(t, actual, "1.9.0-tetrate-v0 is the latest version in 1.9-tetrate")
assert.Contains(t, actual, "1.9.1-tetrate-v0 is the latest version in 1.9-tetrate")
fmt.Println(actual)

// change image to 1.8.1-tetrate-v0
Expand All @@ -603,7 +609,7 @@ func checkUpgrade(t *testing.T) {
fmt.Println(actual)
if strings.Contains(actual,
"There is the available patch for the minor version 1.8-tetrate. "+
"We recommend upgrading all 1.8-tetrate versions -> 1.8.3-tetrate-v0") {
"We recommend upgrading all 1.8-tetrate versions -> 1.8.4-tetrate-v0") {
break
}
}
Expand Down
88 changes: 88 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@
"1.6": "2020-11-21"
},
"istio_distributions": [
{
"version": "1.9.1",
"flavor": "tetrate",
"flavor_version": 0,
"k8s_versions": [
"1.17",
"1.18",
"1.19",
"1.20"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.9.x/announcing-1.9.1/"
],
"is_security_patch": true
},
{
"version": "1.9.1",
"flavor": "istio",
"flavor_version": 0,
"k8s_versions": [
"1.17",
"1.18",
"1.19",
"1.20"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.9.x/announcing-1.9.1/"
],
"is_security_patch": true
},
{
"version": "1.9.0",
"flavor": "tetrate",
Expand Down Expand Up @@ -51,6 +81,36 @@
],
"is_security_patch": false
},
{
"version": "1.8.4",
"flavor": "tetrate",
"flavor_version": 0,
"k8s_versions": [
"1.16",
"1.17",
"1.18",
"1.19"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.8.x/announcing-1.8.4/"
],
"is_security_patch": false
},
{
"version": "1.8.4",
"flavor": "istio",
"flavor_version": 0,
"k8s_versions": [
"1.16",
"1.17",
"1.18",
"1.19"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.8.x/announcing-1.8.4/"
],
"is_security_patch": false
},
{
"version": "1.8.3",
"flavor": "tetrate",
Expand Down Expand Up @@ -138,6 +198,34 @@
],
"is_security_patch": false
},
{
"version": "1.7.8",
"flavor": "tetrate",
"flavor_version": 0,
"k8s_versions": [
"1.16",
"1.17",
"1.18"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.7.x/announcing-1.7.8/"
],
"is_security_patch": false
},
{
"version": "1.7.8",
"flavor": "istio",
"flavor_version": 0,
"k8s_versions": [
"1.16",
"1.17",
"1.18"
],
"release_notes": [
"https://istio.io/latest/news/releases/1.7.x/announcing-1.7.8/"
],
"is_security_patch": false
},
{
"version": "1.7.7",
"flavor": "tetrate",
Expand Down

0 comments on commit 019f6f8

Please sign in to comment.