diff --git a/cluster/cluster_test.go b/cluster/cluster_test.go index 09c30975..f2c0bc73 100644 --- a/cluster/cluster_test.go +++ b/cluster/cluster_test.go @@ -74,7 +74,7 @@ func TestGetLabel(t *testing.T) { "mysql.radondb.com/cluster": "sample", "app.kubernetes.io/name": "mysql", "app.kubernetes.io/instance": "instance", - "app.kubernetes.io/version": "5.7.33", + "app.kubernetes.io/version": "5.7.34", "app.kubernetes.io/component": "database", "app.kubernetes.io/managed-by": "mysql.radondb.com", } @@ -93,7 +93,7 @@ func TestGetLabel(t *testing.T) { "mysql.radondb.com/cluster": "sample", "app.kubernetes.io/name": "mysql", "app.kubernetes.io/instance": "sample", - "app.kubernetes.io/version": "5.7.33", + "app.kubernetes.io/version": "5.7.34", "app.kubernetes.io/component": "component", "app.kubernetes.io/managed-by": "mysql.radondb.com", } @@ -112,7 +112,7 @@ func TestGetLabel(t *testing.T) { "mysql.radondb.com/cluster": "sample", "app.kubernetes.io/name": "mysql", "app.kubernetes.io/instance": "sample", - "app.kubernetes.io/version": "5.7.33", + "app.kubernetes.io/version": "5.7.34", "app.kubernetes.io/component": "database", "app.kubernetes.io/managed-by": "mysql.radondb.com", "app.kubernetes.io/part-of": "part-of", @@ -131,34 +131,34 @@ func TestGetSelectorLabels(t *testing.T) { } func TestGetMySQLVersion(t *testing.T) { - // other 8.0 -> 5.7.33 + //other 8.0 -> 5.7.34 { testMysqlCluster := mysqlCluster testMysqlCluster.Spec.MysqlVersion = "8.0" testCase := Cluster{ &testMysqlCluster, } - want := "5.7.33" + want := "5.7.34" assert.Equal(t, want, testCase.GetMySQLVersion()) } - // MySQLTagsToSemVer 5.7 -> 5.7.33 + //MySQLTagsToSemVer 5.7 -> 5.7.34 { testMysqlCluster := mysqlCluster testMysqlCluster.Spec.MysqlVersion = "5.7" testCase := Cluster{ &testMysqlCluster, } - want := "5.7.33" + want := "5.7.34" assert.Equal(t, want, testCase.GetMySQLVersion()) } - // MysqlImageVersions 5.7.33 -> 5.7.33 + //MysqlImageVersions 5.7.34 -> 5.7.34 { testMysqlCluster := mysqlCluster - testMysqlCluster.Spec.MysqlVersion = "5.7.33" + testMysqlCluster.Spec.MysqlVersion = "5.7.34" testCase := Cluster{ &testMysqlCluster, } - want := "5.7.33" + want := "5.7.34" assert.Equal(t, want, testCase.GetMySQLVersion()) } } diff --git a/cluster/container/init_mysql_test.go b/cluster/container/init_mysql_test.go index 374b8678..9dcc6249 100644 --- a/cluster/container/init_mysql_test.go +++ b/cluster/container/init_mysql_test.go @@ -105,7 +105,7 @@ func TestGetInitMysqlName(t *testing.T) { } func TestGetInitMysqlImage(t *testing.T) { - assert.Equal(t, "percona/percona-server:5.7.33", initMysqlCase.Image) + assert.Equal(t, "percona/percona-server:5.7.34", initMysqlCase.Image) } func TestGetInitMysqlCommand(t *testing.T) { diff --git a/cluster/container/init_sidecar_test.go b/cluster/container/init_sidecar_test.go index c3f095b9..b51c2920 100644 --- a/cluster/container/init_sidecar_test.go +++ b/cluster/container/init_sidecar_test.go @@ -101,7 +101,7 @@ var ( }, { Name: "MYSQL_VERSION", - Value: "5.7.33", + Value: "5.7.34", }, { Name: "RESTORE_FROM", diff --git a/cluster/container/mysql_test.go b/cluster/container/mysql_test.go index 11aab834..4e6e24b2 100644 --- a/cluster/container/mysql_test.go +++ b/cluster/container/mysql_test.go @@ -52,7 +52,7 @@ func TestGetMysqlName(t *testing.T) { } func TestGetMysqlImage(t *testing.T) { - assert.Equal(t, "percona/percona-server:5.7.33", mysqlCase.Image) + assert.Equal(t, "percona/percona-server:5.7.34", mysqlCase.Image) } func TestGetMysqlCommand(t *testing.T) { diff --git a/utils/constants.go b/utils/constants.go index df3fbb2f..f1022940 100644 --- a/utils/constants.go +++ b/utils/constants.go @@ -18,16 +18,17 @@ package utils var ( // MySQLDefaultVersion is the version for mysql that should be used - MySQLDefaultVersion = "5.7.33" + MySQLDefaultVersion = "5.7.34" // MySQLTagsToSemVer maps simple version to semver versions MySQLTagsToSemVer = map[string]string{ - "5.7": "5.7.33", + "5.7": "5.7.34", } // MysqlImageVersions is a map of supported mysql version and their image MysqlImageVersions = map[string]string{ "5.7.33": "percona/percona-server:5.7.33", + "5.7.34": "percona/percona-server:5.7.34", } )